Skip to content

Instantly share code, notes, and snippets.

@Steven-Rose
Created February 3, 2012 07:55
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 Steven-Rose/1728846 to your computer and use it in GitHub Desktop.
Save Steven-Rose/1728846 to your computer and use it in GitHub Desktop.
Canonical redirect to non-www
# canonical redirect to non-www
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment