Skip to content

Instantly share code, notes, and snippets.

@Quay3
Created May 10, 2016 16:31
Show Gist options
  • Save Quay3/88e878294aba8621ce2c6deb83af11c2 to your computer and use it in GitHub Desktop.
Save Quay3/88e878294aba8621ce2c6deb83af11c2 to your computer and use it in GitHub Desktop.
# Begin HTTPS
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourwebsite.com/$1 [R,L]
</IfModule>
# END HTTPS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment