Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Nginx redirect www to non-www
server {
listen 80;
listen 443 ssl;
server_name www.example.com;
return 301 https://example.com$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment