Skip to content

Instantly share code, notes, and snippets.

@j3th9n

j3th9n/.htaccess

Created Nov 7, 2018
Embed
What would you like to do?
HTTP to HTTPS rewrite rule
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