From 78dad732e1fd3d4a57f7fa5747624ce0be50d803 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Wed, 4 Aug 2021 00:19:51 +0200 Subject: Add trailing slash to forbidden directory rules --- .ht-nginx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.ht-nginx') 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; } -- cgit v1.2.3