- Code: Select all
RewriteEngine On
RewriteRule (.+)\.ht$ shop.php?name=$1 [L]
RewriteRule (.+)\.html$ auction_details.php?name=$1 [L]
RewriteRule (.+)\.cfm$ categories.php?parent_id=$1 [L]
RewriteRule ^(.*),(.*)$ $2.php?rewrite_params=$1&page_url=$2
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
All I would like is if someone could help me add some code that redirects the page "http://www.mysite.com/index.php?" to http://www.mysite.com/ as most links linking to my domain end up on index.php? not sure what the question mark comes up for but i have a feeling it's not good for my SEO.
Any help greatly appreciated.
Thanks guys