Skip to content

Instantly share code, notes, and snippets.

@DinoChiesa
Created January 29, 2016 21:09
Show Gist options
  • Save DinoChiesa/5c2a28c7564268aed160 to your computer and use it in GitHub Desktop.
Save DinoChiesa/5c2a28c7564268aed160 to your computer and use it in GitHub Desktop.
to force a server to load SSL endpoint
RewriteCond %{SERVER_PORT} !=443
RewriteRule .* https://%{HTTP_HOST}/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment