Skip to content

Instantly share code, notes, and snippets.

@BacLuc
Created February 22, 2017 20:32
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 BacLuc/07b2375b6fceb1358d3807802bfbc4cf to your computer and use it in GitHub Desktop.
Save BacLuc/07b2375b6fceb1358d3807802bfbc4cf to your computer and use it in GitHub Desktop.
redirect to https
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment