Skip to content

Instantly share code, notes, and snippets.

@AdamGerthel
Created August 22, 2014 09:56
Show Gist options
  • Save AdamGerthel/5f95c69a15276f747cf6 to your computer and use it in GitHub Desktop.
Save AdamGerthel/5f95c69a15276f747cf6 to your computer and use it in GitHub Desktop.
Move all visitors to HTTPS version of site
# Move all visitors to HTTPS version of site
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment