Skip to content

Instantly share code, notes, and snippets.

@codyogden
Created January 3, 2017 11:00
Show Gist options
  • Save codyogden/4f8775ecff17505b04bf3728b172f079 to your computer and use it in GitHub Desktop.
Save codyogden/4f8775ecff17505b04bf3728b172f079 to your computer and use it in GitHub Desktop.
Force HTTPS
RewriteCond %{HTTP:X-Forwarded-Proto} !=https
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment