Apache redirects

I'm trying to do the following permanent redirect in my .htaccess file, but I can't seem to get them to work. Can you help me?

Many thanks. Hello!

Redirection:

http://www.example.com/?_escaped_fragment_=cavite-multi-channel-office/c1g7x

to 

https://www.example.com/insurance-ph/contact-us/branches/cavite.jsp

      

+3


source to share


1 answer


Since you want to redirect based on a query string, I think you can find the answer here: How to redirect urls based on a query string? :)

So, in your case, you end up with something like:



    RewriteCond %{QUERY_STRING}  ^_escaped_fragment_=cavite-multi-channel-office/c1g7x$
    RewriteRule (.*)  https://www.example.com/insurance-ph/contact-us/branches/cavite.jsp  [R=301,L]

      

+1


source







All Articles