Skip to content

Instantly share code, notes, and snippets.

@mallamanis
Created May 29, 2014 13:41
Show Gist options
  • Save mallamanis/bc2f2dbe8299f1075c0c to your computer and use it in GitHub Desktop.
Save mallamanis/bc2f2dbe8299f1075c0c to your computer and use it in GitHub Desktop.
force https
#put the code below into your .htaccess file to force https
Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^ https://lowesthost.com%{REQUEST_URI} [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment