Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Nginx www and not www 301 redirect
#blocco di redirect
server {
listen 80;
listen [::]:80;
server_name evemilano.com;
rewrite ^(.*) http://www.evemilano.com$1 permanent;
}
#blocco default
server {
listen 80;
listen [::]:80;
server_name www.evemilano.com;
...
}
@evemilano

This comment has been minimized.

Copy link
Owner Author

evemilano commented Jul 17, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.