Created
March 26, 2018 18:57
-
-
Save BenFausch/3cf4e136102873e1e2b6c70793890421 to your computer and use it in GitHub Desktop.
https redirect for webfaction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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