Hey guys,
is it possibile to achieve that a user should not type in index.pl after the address of the site? I tried the DirectoryIndex's Apache directive but it doesn't work...
thank you very much
preventing users to type index.pl
Moderator: crythias
Re: preventing users to type index.pl
I've put following entries in my Apache otrs site config file (I am using Apache 2.x and OTRS 3.0.5):
With this configuration:
1. Requests to https://support.mysite.com/otrs/ redirects to agent login interface
2. Requests to https://support.mysite.com redirects to customer login interface
3. All requests to non-otrs elements on the support.mysite.com (for example misspelled URLs or URL scans) redirects to customer login interface.
Code: Select all
RedirectMatch permanent /otrs/$ https://support.mysite.com/otrs/index.pl
RedirectMatch permanent ^/$ https://support.mysite.com/otrs/customer.pl
RedirectMatch permanent ^(?!/(otrs|otrs-web)/(js|skins|index|customer|faq|json|rpc)) https://support.mysite.com/otrs/customer.pl
1. Requests to https://support.mysite.com/otrs/ redirects to agent login interface
2. Requests to https://support.mysite.com redirects to customer login interface
3. All requests to non-otrs elements on the support.mysite.com (for example misspelled URLs or URL scans) redirects to customer login interface.
Freedom is a road seldom traveled by the multitude.