I need to rewrite a URL with a query string into another URL.
For example, I have https://www.something.com/cat/man/clothing/?colourfilter=blue_red
It needs to be rewritten to https://www.something.com/cat/man/clothing.html/colourfilter=blue_red
I tried to follow the tutorial at https://simonecarletti.com/blog/2009/01/apache-query-string-redirects/
My current attempt is below:
RewriteCond %{QUERY_STRING} ^colourfilter=([a-zA-Z][0-9]-*)$
RewriteRule ^(.)$ (.*).html/colourfilter=%1 [R302,L]
I cannot get it to work.
