Skip to content

Instantly share code, notes, and snippets.

@guruguruman
Created June 22, 2014 08:33
Show Gist options
  • Save guruguruman/a2f10a9f1a29621eb45a to your computer and use it in GitHub Desktop.
Save guruguruman/a2f10a9f1a29621eb45a to your computer and use it in GitHub Desktop.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment