Created
March 26, 2012 16:11
-
-
Save jeffsebring/2206205 to your computer and use it in GitHub Desktop.
nginx remove www redirect
This file contains 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 { | |
server_name www.example.com; | |
rewrite ^/(.*)$ http://example.com/$1 permanent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment