Skip to content

Instantly share code, notes, and snippets.

Created January 30, 2018 22:01
What would you like to do?
HTTP to HTTPS via htaccess only
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