Skip to content

Instantly share code, notes, and snippets.

@TobleMiner
Created March 4, 2015 17:27
Show Gist options
  • Save TobleMiner/65625a31e2ccd1909620 to your computer and use it in GitHub Desktop.
Save TobleMiner/65625a31e2ccd1909620 to your computer and use it in GitHub Desktop.
Apache mod_rewrite HTTP -> HTTPS redirect
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment