Skip to content

Instantly share code, notes, and snippets.



Last active Nov 4, 2017
What would you like to do?
Redirect to HTTPS
# @see
# BEGIN Redirect to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# END Redirect to HTTPS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment