Created
January 19, 2015 09:28
-
-
Save RickCogley/bfeaac629356848178b3 to your computer and use it in GitHub Desktop.
.htaccess for forwarding from http to https. From http://docs.webfaction.com/software/static.html#static-redirecting-from-http-to-https
This file contains hidden or 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
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