Skip to content

Instantly share code, notes, and snippets.

@michaelcullum
Last active December 21, 2016 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelcullum/1b1f6499d86c844913542edf7b3d7e30 to your computer and use it in GitHub Desktop.
Save michaelcullum/1b1f6499d86c844913542edf7b3d7e30 to your computer and use it in GitHub Desktop.
# 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