Skip to content

Instantly share code, notes, and snippets.



Last active Dec 21, 2016
What would you like to do?
# The real stuff
RewriteEngine On
# Redirect to HTTPS
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment