Skip to content

Instantly share code, notes, and snippets.

@BenFausch
Created March 26, 2018 18:57
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 BenFausch/3cf4e136102873e1e2b6c70793890421 to your computer and use it in GitHub Desktop.
Save BenFausch/3cf4e136102873e1e2b6c70793890421 to your computer and use it in GitHub Desktop.
https redirect for webfaction
#create domain with https, set up certs, test individually
#then create a website as same domain, but without https, add htaccess with values below in webapp location
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment