Skip to content

Instantly share code, notes, and snippets.

@therealkevinard
Created July 25, 2016 16:58
Show Gist options
  • Save therealkevinard/4510fd80d63de7ead677e09f911f7bd5 to your computer and use it in GitHub Desktop.
Save therealkevinard/4510fd80d63de7ead677e09f911f7bd5 to your computer and use it in GitHub Desktop.
force ssl
# force ssl
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://site.com/$1 [R,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment