Forum Moderators: phranque
I have the below htaccess rewrite rule to stop duplicate content on my sites home page.
www.example.com/index.php is rewritten to www.example.com/
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]
but if I add a slash
www.example.com/index.php/ then it is not rewritten to www.example.com/
could someone please help?
Thanks
[edited by: tedster at 4:03 pm (utc) on May 15, 2008]
[edited by: jdMorgan at 8:14 pm (utc) on May 15, 2008]
[edit reason] switch to example.com - it can never be owned [/edit]