Skip to content

Instantly share code, notes, and snippets.

@darkkain
Last active July 17, 2019 09:25
Show Gist options
  • Save darkkain/6f7b29b9749dc7e15a20984350fea2e1 to your computer and use it in GitHub Desktop.
Save darkkain/6f7b29b9749dc7e15a20984350fea2e1 to your computer and use it in GitHub Desktop.
http to https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
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