Skip to content

Instantly share code, notes, and snippets.

@vertisan
Created October 11, 2017 12:11
Show Gist options
  • Save vertisan/6fe09a86a541c73b4be9d2bbc324299e to your computer and use it in GitHub Desktop.
Save vertisan/6fe09a86a541c73b4be9d2bbc324299e to your computer and use it in GitHub Desktop.
.htaccess SSL
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment