Welcome to WebmasterWorld Guest from 22.214.171.124
I used to have a index.php file under wordpress in my root directory which of course generates queries for "next pages" and the like, such as:
I want to redirect all cases of index.php to index.html or rather just the example.com as I don't use index.php any longer.
I have the following code in my .htaccess file:
Redirect 301 /index.php http://www.example.com/?
Which does the trick except it leaves the "?" at the end. if I remove the "?" at the end the complete query string is shown, ie: example.com/?c=81&s=11
Any ideas? Thanks.
RewriteRule ^index\.(?:html¦php)$ /? [R=301,L,NS]
Edit: BTW: you'll have to replace the ¦ pipe with a solid one from your keyboard since this character is modified by the forum software.
[edited by: Caterham at 12:13 pm (utc) on Mar. 11, 2009]