I want to go from:
www.website.com/directory/results?category=10&dir=asc
to
www.website.com/staticfile.html
I tried the following and it doesn't seem to catch:
RewriteRule "^directory\/results\?category=10&dir=asc" "\/staticfile\.html" [R, L]
I can get it to redirect using:
RewriteCond %{REQUEST_URI} "^directory\/results" [NC]
RewriteCond %{QUERY_STRING] category=10&dir=asc
RewriteRule (.*) "\/staticfile\.html"
But then it appends the parameters after html
in the last example.