From 9a1b8c6204c0889af9ad8c68780cd5f77c83ecaa Mon Sep 17 00:00:00 2001 From: John Flatness Date: Thu, 3 Aug 2023 17:14:23 -0400 Subject: [PATCH] Expand excluded extensions for possible PHP files (cherry picked from commit 48c2bd4fa09b1ac6fe61e35675fa705915755de0) --- .htaccess.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.htaccess.dist b/.htaccess.dist index e3ddcd16f5..c9e80a7f6d 100644 --- a/.htaccess.dist +++ b/.htaccess.dist @@ -5,7 +5,7 @@ RewriteEngine On # The following rule tells Apache that if the requested filename # exists, simply serve it. RewriteCond %{REQUEST_FILENAME} -f -RewriteRule !\.(php[0-9]?|phtml|phps)$ - [NC,C] +RewriteRule !\.(php[0-9]?|phtml|phps|phar|hphp)$ - [NC,C] RewriteRule !(?:^|/)\.(?!well-known(?:/.*)?$) - [C] RewriteRule .* - [L]