Can't get url to redirect with .htaccess and &

I can’t seem to get this url to redirect in the .htaccess file when there are & symbols in the url.

RewriteCond %{QUERY_STRING} ^zoom_query=gooseneck&am​p;zoom_page=1&zoom_per_page=10&​amp;zoom_and=0&zoom_sort=0$
RewriteRule ^searchResults​/search.asp$ /store/products.html? [R=301,L]

How can i replace the & with &.

Thanks for your help i am fairly new to .htaccess.

I think you should be able to use just & instead of & in htaccess.
Any special symbols you need to escape, like those that affect regex, can be done with a backslash, Eg: \$ if you want a dollar, not a string end.

Here is the url i am trying to redirect

that URL is invalid - you can’t use html entities outside of HTML.


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.