Hi,
I am trying to redirect all index.php urls site wide to the url without index.php to prevent duplicate content but can only seem to redirect the homepage url and not the internal urls. If someone is able point out where I am going wrong that would be great.
This is what my .htaccess file currently looks like:
Options +FollowSymLinks
DirectoryIndex index.php
RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /index\.php(/[^\ ]*)?\ HTTP/
RewriteRule ^index\.php(/(.*))?$ http://www.example.com/$2 [R=301,L]
RewriteCond %{HTTP_HOST} ^example\.com\.au$ [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com\.au$
RewriteRule ^(.*)$ "http\:\/\/www\.example\.com\/$1" [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http:
//www.%{HTTP_HOST}/$1 [R=301,L]
[edited by: incrediBILL at 9:32 am (utc) on Aug 24, 2012]
[edit reason] unlinked URLs in code [/edit]