Skip to content

Instantly share code, notes, and snippets.

@kmgdevelopment
Created March 20, 2014 21:39
Show Gist options
  • Select an option

  • Save kmgdevelopment/9674483 to your computer and use it in GitHub Desktop.

Select an option

Save kmgdevelopment/9674483 to your computer and use it in GitHub Desktop.
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} =on
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment