preventing users to type index.pl

Moderator: crythias

Post Reply
giorg
Znuny newbie
Posts: 18
Joined: 23 Feb 2011, 17:42
Znuny Version: 3.0.5

preventing users to type index.pl

Post by giorg »

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
sfs
Znuny newbie
Posts: 10
Joined: 28 Feb 2011, 15:22
Znuny Version: 3.0.5
Location: Warsaw, Poland

Re: preventing users to type index.pl

Post by sfs »

I've put following entries in my Apache otrs site config file (I am using Apache 2.x and OTRS 3.0.5):

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
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.
Freedom is a road seldom traveled by the multitude.
Post Reply