Skip to content

Instantly share code, notes, and snippets.

@waylay
Created August 22, 2018 15:42
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 waylay/23a0f7b298e6d85224de26215cae67cc to your computer and use it in GitHub Desktop.
Save waylay/23a0f7b298e6d85224de26215cae67cc to your computer and use it in GitHub Desktop.
.htaccess HTTPS redirect
RewriteEngine On
RewriteCond %{HTTPS} !=on
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