Skip to content

Instantly share code, notes, and snippets.

@griiettner
Created July 12, 2013 01:03
Show Gist options
  • Save griiettner/5980617 to your computer and use it in GitHub Desktop.
Save griiettner/5980617 to your computer and use it in GitHub Desktop.
Redirect www urls to non-www
# Redirect www urls to non-www
RewriteCond %{HTTP_HOST} ^www\.yoursite\.com [NC]
RewriteRule (.*) http://yoursite.com/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment