I have following rule:
RewriteCond %{QUERY_STRING} ^products=Product Name$
RewriteRule ^buyonline\.php$ http://www.example.com/shop/5-Product-Name.html? [L,R=301]
I need to redirect links existing in Google already, however there is no pattern so I can't just use e.g. ^products=(.*)$
.
Code above works fine if parameter has no spaces. I have tried lots of combinations like \s doublequotes, etc, etc.