Created
November 22, 2010 23:13
-
-
Save tgraham/710907 to your computer and use it in GitHub Desktop.
Nginx redirect
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
Put this in your server{} block in your nginx config file: | |
if ($host = 'tricklesofchange.com' ) { | |
rewrite ^/(.*)$ http://www.tricklesofchange.com/$1 permanent; | |
} | |
This will force a 301 redirect on all requests coming in. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment