Created
September 28, 2012 13:25
-
-
Save pwolanin/3799837 to your computer and use it in GitHub Desktop.
patch for https redirect
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
diff --git a/docroot/.htaccess b/docroot/.htaccess | |
index 3c37c16..b41c1fd 100644 | |
--- a/.htaccess | |
+++ b/.htaccess | |
@@ -61,6 +61,11 @@ DirectoryIndex index.php index.html index.htm | |
RewriteCond %{HTTP:X-FORWARDED-PROTO} !https | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
+ # Redirect to https | |
+ RewriteCond %{HTTP_HOST} find.acquia.com | |
+ RewriteCond %{HTTP:X-FORWARDED-PROTO} !https | |
+ RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
+ | |
# Pass Authorization HTTP header to FastCGI | |
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment