Skip to content

Instantly share code, notes, and snippets.

@zesda
Created May 24, 2016 07:12
Show Gist options
  • Save zesda/ded78d3264feb7be02a2adcbd8dc936e to your computer and use it in GitHub Desktop.
Save zesda/ded78d3264feb7be02a2adcbd8dc936e to your computer and use it in GitHub Desktop.
Tsohost HTTPS Redirect
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://yourdomain.com/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment