Forum Moderators: phranque

Message Too Old, No Replies

rewrite rule

         

justfor

1:33 pm on Apr 22, 2005 (gmt 0)

10+ Year Member



Hello,
I would like to request help in a matter...
I need a rewrite rule in my .htaccess file which suppose to do the following:
if someone is trying to access
www.something.com/index.php the link should be changing into www.something.com/
I'd try like this
RewriteRule ^http://www.something.com/index.php$ [something.com...] [R]
How many rewrite rules can I have in a .htaccess file?
Thanks,
justfor

Longhaired Genius

2:15 pm on Apr 22, 2005 (gmt 0)

10+ Year Member



Dont do this, it will set up an infinite loop. Just make sure that every link that is under your control is to / and not to /index.php and other people will not link to /index.php either. Don't worry about a few existing links to /index.php.

Welcome to Webmaster World.

justfor

2:36 pm on Apr 22, 2005 (gmt 0)

10+ Year Member



ok, I understand...
thanks for your answer :)