Örnek ;
]server {
....
..
..
return 301 http://$host$request_uri;
...
..
.
}
https://www.bjornjohansen.no/redirect-to-https-with-nginx
https://www.digitalocean.com/community/questions/best-way-to-configure-nginx-ssl-force-http-to-redirect-to-https-force-www-to-non-www-on-serverpilot-free-plan-by-using-nginx-configuration-file-only