Skip to content

Instantly share code, notes, and snippets.

@ixkaito
Created April 27, 2019 10:41
Show Gist options
  • Save ixkaito/84ac13fc868a6e555d00cc49d66f6e24 to your computer and use it in GitHub Desktop.
Save ixkaito/84ac13fc868a6e555d00cc49d66f6e24 to your computer and use it in GitHub Desktop.
Redirect HTTP to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment