Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redirections in apache

I'm trying to perform the following permanent redirection in .htaccess file, but I can not make them work. Can you help me?

Thank you very much. Regards!

Redirect is this:

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

to 

https://www.example.com/insurance-ph/contact-us/branches/cavite.jsp
like image 327
kaiser1871 Avatar asked May 16 '26 16:05

kaiser1871


1 Answers

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

So in your case you would get 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]
like image 120
Stefan Herijgens Avatar answered May 19 '26 20:05

Stefan Herijgens