Skip to content

Instantly share code, notes, and snippets.

@slav123
Last active December 11, 2017 08:16
Show Gist options
  • Save slav123/4965092 to your computer and use it in GitHub Desktop.
Save slav123/4965092 to your computer and use it in GitHub Desktop.
apache SSL
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment