I've a list of redirections to do and many of them are similar to others, but less or more restrictives, for example:
http://www.example.com/example/form.aspx?code=2 to http://www.google.com
And in the other hand:
http://www.example.com/form.aspx?category=5&code=2 to http://www.microsoft.com
Now i tried with:
RewriteCond %{QUERY_STRING} ^code=2$
RewriteCond %{REQUEST_URI} "^/example/form(.*)"
RewriteRule (.*) http://www.google.com? [R=301,L]
RewriteCond %{QUERY_STRING} code=2
RewriteCond %{QUERY_STRING} category=5
RewriteCond %{REQUEST_URI} "^/example/form(.*)"
RewriteRule (.*) http://www.microsoft.com? [R=301,L]
The problem is that any of that goes to http://www.google.com/?code=2 or http://www.google.com/?code=2&category=5
Have you any suggestions?
Thanks you.