nginx www shall redirect permanently with 301 under https – SEO
I try to redirect www.example.com to https://example.com by adding the first serverblock. But it doesn't redirect. And it has to be redirected permanently to avoid SEO issues and security warnings for the user. Here is my complete NGINX config file:…