Skip to content

Instantly share code, notes, and snippets.

@WebVooruit
Created February 24, 2018 23:09
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 WebVooruit/0c5e9380e20ff4f84af7515e86096822 to your computer and use it in GitHub Desktop.
Save WebVooruit/0c5e9380e20ff4f84af7515e86096822 to your computer and use it in GitHub Desktop.
Switch to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment