Skip to content

Instantly share code, notes, and snippets.

@peterkraume
Last active December 18, 2015 22:59
Show Gist options
  • Save peterkraume/5858053 to your computer and use it in GitHub Desktop.
Save peterkraume/5858053 to your computer and use it in GitHub Desktop.
Force SSL encryption
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment