aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-08-04 00:19:51 +0200
committerThomas Lange <code@nerdmind.de>2021-08-04 00:22:01 +0200
commit78dad732e1fd3d4a57f7fa5747624ce0be50d803 (patch)
tree385e60cc6ad669d99d88ca3f72e3d2263a841bb3
parent498f8ee11b5d8012c17d8a68ae6b447d07e9a11d (diff)
downloadblog-78dad732e1fd3d4a57f7fa5747624ce0be50d803.tar.gz
blog-78dad732e1fd3d4a57f7fa5747624ce0be50d803.tar.xz
blog-78dad732e1fd3d4a57f7fa5747624ce0be50d803.zip
Add trailing slash to forbidden directory rules
-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 ba8a9b2..168e8c0 100644
--- a/.ht-nginx
+++ b/.ht-nginx
@@ -24,7 +24,7 @@ error_page 404 /404.php;
#===============================================================================
# Forbidden directories
#===============================================================================
-location ~ ^/(.git|core|theme/([^/]+)/(html|lang)/) {
+location ~ ^/(.git|core|theme/([^/]+)/(html|lang))/ {
return 403;
}
diff --git a/.htaccess b/.htaccess
index e337dde..8acc410 100644
--- a/.htaccess
+++ b/.htaccess
@@ -27,7 +27,7 @@ RewriteEngine On
#===============================================================================
# Forbidden directories
#===============================================================================
-RewriteRule ^(.git|core|theme/([^/]+)/(html|lang)/) - [F]
+RewriteRule ^(.git|core|theme/([^/]+)/(html|lang))/ - [F]
#===============================================================================
# Pass requests to index.php