Skip to content

Instantly share code, notes, and snippets.

@verekia
Created August 24, 2016 23:03
Show Gist options
  • Save verekia/846d89d9d305eba253a5c1600458ae7f to your computer and use it in GitHub Desktop.
Save verekia/846d89d9d305eba253a5c1600458ae7f to your computer and use it in GitHub Desktop.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment