aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.ht-nginx2
-rw-r--r--.htaccess2
2 files changed, 2 insertions, 2 deletions
diff --git a/.ht-nginx b/.ht-nginx
index ff6b459..6b97cb8 100644
--- a/.ht-nginx
+++ b/.ht-nginx
@@ -18,7 +18,7 @@ error_page 404 /404.php;
#===============================================================================
# Forbidden directories
#===============================================================================
-location ~ ^/(core|theme/([^/]+)/(html|lang)/) {
+location ~ ^/(.git|core|theme/([^/]+)/(html|lang)/) {
return 403;
}
diff --git a/.htaccess b/.htaccess
index bbf32d9..b3203b2 100644
--- a/.htaccess
+++ b/.htaccess
@@ -23,7 +23,7 @@ ErrorDocument 404 /404.php
#===============================================================================
# Forbidden directories
#===============================================================================
-RewriteRule ^(core|theme/([^/]+)/(html|lang)/) - [F]
+RewriteRule ^(.git|core|theme/([^/]+)/(html|lang)/) - [F]
#===============================================================================
# Main rules