Skip to content

Instantly share code, notes, and snippets.

@samdoidge
Created May 7, 2014 03:22
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 samdoidge/0594a8429d2ded5094f2 to your computer and use it in GitHub Desktop.
Save samdoidge/0594a8429d2ded5094f2 to your computer and use it in GitHub Desktop.
.htaccess remove www
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.samdoidge.com$ [NC]
RewriteRule ^(.*)$ http://samdoidge.com/$1 [R=301,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment