Skip to content

Commit

Permalink
Expand excluded extensions for possible PHP files
Browse files Browse the repository at this point in the history
(cherry picked from commit 48c2bd4)
  • Loading branch information
zerocrates committed Aug 4, 2023
1 parent 2a7fb26 commit 9a1b8c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .htaccess.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit 9a1b8c6

Please sign in to comment.