Forum Moderators: phranque
I have a problem with people linking to www.mydomain.com/index.php, i want to use a rewrite rule to redirect it to www.mydomain.com
so my first thought was to do
RewriteRule ^index.php www.mydomain.com [r=301,nc]
this doesnt work presumably because my host is rewriting www.mydomain.com as www.mydomain.com/index.php and therefore apache enters an endless loop. Firefox tells me "redirection limit for this url has been exceeded... blah blah" or something to that effect.
I'm sure there is a simple soloution, any ideas?
Jim