Forum Moderators: phranque

Message Too Old, No Replies

htaccess file required

         

mangcreative

1:01 pm on Sep 26, 2012 (gmt 0)

10+ Year Member




Can anyone help me ?

I need a htaccess file that would do the following :

(1) If you visit the domain redirect to a sub-directory

(2) However if you visit the index.php from a certain set of internal URL's then show the index.php

For example :

(1) If you visit www.domain.com then you get redirected to www.domain.com/Welcome/

(2) However if you visit www.domain.com / link to the domain from the page www.domain.com/About-Us/ you would NOT get redirected and instead show the index.php (www.domain.com/index.php) would be shown.

g1smd

1:33 pm on Sep 26, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Redirecting root requests is nearly always a bad idea.

Your scheme relies on referrers or cookies. Searchengine bots don't do those.