Skip to content

Instantly share code, notes, and snippets.

@jstcki
Created February 4, 2010 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jstcki/294640 to your computer and use it in GitHub Desktop.
Save jstcki/294640 to your computer and use it in GitHub Desktop.
Redirect HTTP to HTTPS
<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