From adf9ec49623bd824308af857a80ba39bb0743392 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 9 Jan 2018 09:08:01 +0100 Subject: [PATCH] Simplify some rewrite rules --- .htaccess | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.htaccess b/.htaccess index fd9ac80f0..1eaf92abb 100644 --- a/.htaccess +++ b/.htaccess @@ -29,11 +29,9 @@ RewriteRule ^favicon\.ico$ skins/larry/images/favicon.ico # in all locations except installer directory RewriteRule ^(?!installer|\.well-known\/|[a-zA-Z0-9]{16})(\.?[^\.]+)$ - [F] # - deny access to some locations -RewriteRule ^/?(\.git|\.tx|SQL|bin|config|logs|temp|tests|program\/(include|lib|localization|steps)) - [F] -# - deny access to composer binaries -RewriteRule ^/vendor\/bin\/.* - [F] +RewriteRule ^/?(\.git|\.tx|SQL|bin|config|logs|temp|tests|vendor|program\/(include|lib|localization|steps)) - [F] # - deny access to some documentation files -RewriteRule /?(README\.md|composer\.json-dist|composer\.json|composer\.lock|package\.xml|jsdeps.json)$ - [F] +RewriteRule /?(README.*|meta\.json|composer\..*|jsdeps.json)$ - [F]