Skip to content

Instantly share code, notes, and snippets.

@mwender
Created August 6, 2015 18:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwender/5e9d647fd78fabd928f3 to your computer and use it in GitHub Desktop.
Save mwender/5e9d647fd78fabd928f3 to your computer and use it in GitHub Desktop.
Redirect http to https
# http to https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment