Skip to content

Instantly share code, notes, and snippets.

@pwolanin
Created September 28, 2012 13:25
Show Gist options
  • Save pwolanin/3799837 to your computer and use it in GitHub Desktop.
Save pwolanin/3799837 to your computer and use it in GitHub Desktop.
patch for https redirect
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