Skip to content

Instantly share code, notes, and snippets.

@michaelcullum

michaelcullum/.htaccess

Last active Dec 21, 2016
Embed
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
You can’t perform that action at this time.