Skip to content

Instantly share code, notes, and snippets.

@rfmeier
Created January 20, 2016 19:17
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 rfmeier/ac213e4d9b14658fd5ef to your computer and use it in GitHub Desktop.
Save rfmeier/ac213e4d9b14658fd5ef to your computer and use it in GitHub Desktop.
Force https in .htaccess
# force https
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# end force https
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment