Re-directing non-www subdomains with NGINX
Lets say you are hosting www.example.com
with an NGINX front-end and you want to re-direct
http://example.com
and https://example.com
to http://www.example.com
. Here is the NGINX config to do that
Lets say you are hosting www.example.com
with an NGINX front-end and you want to re-direct
http://example.com
and https://example.com
to http://www.example.com
. Here is the NGINX config to do that