Plus sign ( + ) in a rewrite rule (.HTACCESS on Linux Server) (SOLVED)
- by ienabellamy
i've this snippet, but it doesn't works. Obviously is that plus sign + tha must be escape ?
RewriteCond %{QUERY_STRING} ^orderby=position&controller=search&orderway=desc&search_query=t+max$
RewriteRule ^it/cerca$ http://www.wrs.sm/it/cerca?orderby=position&controller=search&orderway=desc&search_query=tmax? [R=301,L]
i want to redirect this url
http://www.wrs.sm/it/cerca?orderby=position&controller=search&orderway=desc&search_query=t+max
to this
http://www.wrs.sm/it/cerca?orderby=position&controller=search&orderway=desc&search_query=tmax
Thanks ;)
I found the solution, the correct rules are:
RewriteCond %{QUERY_STRING} ^orderby=position&controller=search&orderway=desc&search_query=t\+max$
RewriteRule ^it/cerca$ http://www.wrs.sm/it/cerca?orderby=position&controller=search&orderway=desc&search_query=tmax [R=301,L]