Created
September 7, 2018 20:06
-
-
Save mberizzo/76d455684d391a6e7a68c09b428b808c to your computer and use it in GitHub Desktop.
Redirect www.domain.com to domain.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen 443; | |
server_name www.mywebsite.com; | |
return 301 $scheme://mywebsite.com$request_uri; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment