$10 epass and my eternal gratitude for a working solution:
I need to 301 redirect urls with a specific query string parameter (any value) to my main url. In other words:
Code:
http://www.domain.com/index.php?cat=x
http://www.domain.com/index.php?cat=whatever
redirects to:
Code:
http://www.domain.com
(no file name (index.php), just the main domain.)
but
Code:
http://www.domain.com/index.php?dir=x
stays unchanged.