Skip to content

Instantly share code, notes, and snippets.

@jeffsebring
Created March 26, 2012 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffsebring/2206205 to your computer and use it in GitHub Desktop.
Save jeffsebring/2206205 to your computer and use it in GitHub Desktop.
nginx remove www redirect
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