Skip to content

Instantly share code, notes, and snippets.

@UVLabs
Created May 4, 2016 13:12
Show Gist options
  • Save UVLabs/35465e1628023ddd3f0c2ab4def2a24c to your computer and use it in GitHub Desktop.
Save UVLabs/35465e1628023ddd3f0c2ab4def2a24c to your computer and use it in GitHub Desktop.
Automatically Redirect HTTP to HTTPS
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment