Skip to content

Instantly share code, notes, and snippets.

@ericakfranz
Created September 5, 2015 02:20
Show Gist options
  • Save ericakfranz/464ab33cf9c1a95b2242 to your computer and use it in GitHub Desktop.
Save ericakfranz/464ab33cf9c1a95b2242 to your computer and use it in GitHub Desktop.
Force SSL
#BEGIN Force SSL
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L]
#END Force SSL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment