Forum Moderators: phranque
This is what I have
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteRule ^(([^/]+/)*)index\.php$ http://www.example.com/$1 [R=301,L]
This redirects www.example.com/index.php to www.example.com.
I want to be able redirect www.example.com/index.php?id=1 to www.example.com/?id=1
The query string could be anything.
Any help would be appreciated, thanks.
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.ph[b]p(\?[^\ ]*)?\[/b] HTTP/
RewriteRule ^(([^/]+/)*)index\.php$ http://www.example.com/$1 [R=301,L]
Jim