Skip to content

Instantly share code, notes, and snippets.

@tribulant
Created October 9, 2018 11:15
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 tribulant/77327b2c1ce359773907b424bad23770 to your computer and use it in GitHub Desktop.
Save tribulant/77327b2c1ce359773907b424bad23770 to your computer and use it in GitHub Desktop.
SSL redirect all traffic
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment