Hi guys, I'm trying to create a rewrite statement that rewrites all urls that lead to the same page, but are not the same URL. Here is an example: The URLs: www.muchgames.com/index.php?ALL www.muchgames.com/?favgamez.com www.muchgames.com/ load the homepage, being www.muchgames.com. How can I write a rewrite rule to have all these URLs rewritten to www.muchgames.com ? Thanks in advance, Armin
For the third url you won't need a rewrite rule. For the first two the rewrite rule would look like this: RewriteEngine On RewriteCond %{QUERY_STRING} ^ALL$ RewriteRule ^index.php$ /? [L,R] RewriteCond %{QUERY_STRING} ^favgamez\.com$ RewriteRule ^(.*)$ /? [L,R] Code (markup): It works but i don't know if thats the right way to do it as i'm pretty new to rewrite rules