Skip to content

Instantly share code, notes, and snippets.

@accrane
Created August 18, 2017 16:56
Show Gist options
  • Save accrane/0203beb645b46bd3938ca6059c98a450 to your computer and use it in GitHub Desktop.
Save accrane/0203beb645b46bd3938ca6059c98a450 to your computer and use it in GitHub Desktop.
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