Skip to content

Instantly share code, notes, and snippets.

@Radmation
Last active September 12, 2019 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Radmation/e0931446075682976a4fd7f3218d3827 to your computer and use it in GitHub Desktop.
Save Radmation/e0931446075682976a4fd7f3218d3827 to your computer and use it in GitHub Desktop.
Cloud Sites - Force HTTPS
RewriteEngine on
RewriteBase /
RewriteCond %{ENV:HTTPS} !on [NC]
RewriteRule ^(.*)$ https://example.com/$1 [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment