diff --git a/.htaccess b/.htaccess index 5aaf00be8..bc017f48f 100644 --- a/.htaccess +++ b/.htaccess @@ -19,7 +19,7 @@ AddDefaultCharset utf-8 RewriteRule ^(panel|backup|bin|cache|formwork|site|vendor)/.* index.php [L,NC] ## Prevent access to specific files - RewriteRule ^(.*)\.(md|yml|json|neon)/?$ index.php [L,NC] + RewriteRule ^(.*)\.(md|yml|yaml|json|neon)/?$ index.php [L,NC] RewriteRule ^(\.(.*)|LICENSE|composer\.lock)/?$ index.php [L,NC] diff --git a/formwork/server.php b/formwork/server.php index eae41a192..2cc395a94 100644 --- a/formwork/server.php +++ b/formwork/server.php @@ -11,7 +11,7 @@ return false; case preg_match('~^/(panel|backup|bin|cache|formwork|site|vendor)/.*~i', $path): - case preg_match('~^/(.*)\.(md|yaml|json|neon)/?$~i', $path): + case preg_match('~^/(.*)\.(md|yml|yaml|json|neon)/?$~i', $path): case preg_match('~^/(\.(.*)|LICENSE|composer\.lock)/?$~i', $path): break;