Home Nginx - Redirect chain
Reply: 0

Nginx - Redirect chain

Lee
1#
Lee Published in 2017-12-06 09:27:46Z

According to an online redirect checker, the following chain happens on some of my pages:

https://website.com/ar/page/
301 ->
http://website.com/es/page/
301 ->
https://website.com/es/page/
301 ->
https://website.com/es/page

For some reason, the redirect from /ar/ to /es/ changes the https to http.

Here is my redirect code:

rewrite ^/ar/(.+)$ /es/$1 permanent;

Is there a way to ensure the redirect keeps the https?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.307686 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO