Created
October 17, 2012 19:40
-
-
Save pwolanin/3907652 to your computer and use it in GitHub Desktop.
patch for htaccess
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/.htaccess b/.htaccess | |
index 246edc2..184eb8b 100644 | |
--- a/.htaccess | |
+++ b/.htaccess | |
@@ -86,7 +86,24 @@ DirectoryIndex index.php index.html index.htm | |
# uncomment the following: | |
# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] | |
# RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301] | |
- | |
+##GardensExcludeFromExportStart################################################ | |
+ # Don't let anyone access install.php except for | |
+ # local gardens development. | |
+ <Files "install.php"> | |
+ Order Deny,Allow | |
+ Deny from All | |
+ Allow from 127.0.0.1 | |
+ </Files> | |
+ # Make robots go away on dev servers | |
+ RewriteCond %{ENV:AH_SITE_ENVIRONMENT} ^development | |
+ RewriteCond %{REQUEST_FILENAME} .*/robots.txt$ [NC] | |
+ RewriteRule ^(.*)$ modules/acquia/robots-disallow.txt [L] | |
+ # Drupal Gardens sites should not use a leading www. | |
+ RewriteCond %{HTTP_HOST} ^www\.(.+\.(drupalgardens|wmg-gardens|fpmg-drupalgardens|edrupalgardens)\....)$ [NC] | |
+ RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301] | |
+ # Do not serve files from the gardens_temp directory on each site | |
+ RewriteRule ^(.*/)+gardens_temp/ - [F,L] | |
+##################################################GardensExcludeFromExportEnd## | |
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a | |
# VirtualDocumentRoot and the rewrite rules are not working properly. | |
# For example if your site is at http://example.com/drupal uncomment and |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment