Fanis Hello everyone, I'm a little confused in the settings, strange behavior of redirects on the domain. Now I have configured that redirects http://www.site.com > https://www.site.com > https://site.com. In the config file I have the following settings: server { listen 80; listen [::]:80; server_name www.site.com site.com; return 301 https://site.com$request_uri; } I can't understand why an extra redirect is happening, and how to get rid of it. So that in the end it was: http://www.site.com > https://site.com
marty Did you reload Nginx config (WO does it for you if you use wo site edit...)? Or could be browser caching.
Fanis marty Yes, I overloaded NGINX, I also tried to screw it to the hostname, but it didn’t help either, I don’t understand what the problem might be. On the Internet, examples of readers indicate that the code above is correct