Let me rewrite calls from:

http:// domain.com/index.php?var1=value&var2=alpha&var3=number

To:

http:// domain.com


I have attempted each one of the following below with no success. Are you able to advise a better solution?

//#1
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^index\.php\?var1=value&var2=[^&]*&var3=[^&]*$ http://domain.com [R=301]

//#2
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^index\.php\?var1=value&var2=([A-Za-z-]+)&var3=([0-9-]+)$ http://domain.com [R=301]

You can't match a question string inside a rewriterule.

Better make use of this:

# match 'value' (not sure if this is static, otherwise change it)
RewriteCond %{QUERY_STRING}   (^|&)var1=value           [NC]
# match all characters from A to Z (case insensitive), including -
RewriteCond %{QUERY_STRING}   (^|&)var2=([A-Z-]+)       [NC]
# match all numbers, including -
RewriteCond %{QUERY_STRING}   (^|&)var3=([0-9-]+)$      [NC]
# if all RewriteCond's are satisfied, this RewriteRule will be executed
RewriteRule ^index\.php$      http://domain.com         [R=301,L]

These RewriteCond's is going to be AND'ed, I have just split them up so that you can see what they're doing, but additionally to complement the query string even when the parameters are succumbed another order.