From 0d7e5d2fe277ad5a65cf6eb6d471b4a7bafe0f8b Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 8 Jun 2018 02:31:26 +0300 Subject: [PATCH] Improve .htaccess --- .htaccess | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.htaccess b/.htaccess index 1e7bc8fe..066687ca 100755 --- a/.htaccess +++ b/.htaccess @@ -49,13 +49,13 @@ RewriteRule ^(\.git|flextype)/(.*) error [F] # Block access to specific file types for these system folders RewriteRule ^(flextype|vendor)/(.*)\.(txt|xml|md|html|yaml|yml|php|pl|py|cgi|sh|bat)$ error [F] # Block access to specific file types for these user folders -RewriteRule ^(site)/(.*)\.(txt|md|html|yaml|yml|php|pl|py|cgi|sh|bat)$ error [F] +RewriteRule ^(site)/(.*)\.(txt|html|yaml|php|pl|py|cgi|sh|bat)$ error [F] # Block all direct access to .html files: RewriteRule \.html$ error [F] # Block all direct access to files and folders beginning with a dot RewriteRule (^|/)\.(?!well-known) - [F] # Block access to specific files in the root folder -RewriteRule ^(LICENSE\.md|composer\.lock|composer\.json|\.htaccess)$ error [F] +RewriteRule ^(LICENSE\.txt|composer\.lock|composer\.json|\.htaccess)$ error [F] ## End - Security ## Begin - Rewrite rules for SEO improvements.