From bf3ab90dff330b85b8459093179e57b03396110a Mon Sep 17 00:00:00 2001 From: Hannes Papenberg Date: Wed, 29 Oct 2014 18:45:56 +0100 Subject: [PATCH] Adding back in a rule to match on specific files for .htaccess This is an attempt to fix the issue in #4955. --- htaccess.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htaccess.txt b/htaccess.txt index 55f4e6be971f5..c39b56adfc854 100644 --- a/htaccess.txt +++ b/htaccess.txt @@ -62,6 +62,10 @@ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # If the requested path and file is not /index.php and the request # has not already been internally rewritten to the index.php script RewriteCond %{REQUEST_URI} !^/index\.php +# and the request is for something within the component folder, +# or for the site root, or for an extensionless URL, or the +# requested URL ends with one of the listed extensions +RewriteCond %{REQUEST_URI} /component/|(/[^.]*)$ [NC] # and the requested path and file doesn't directly match a physical file RewriteCond %{REQUEST_FILENAME} !-f # and the requested path and file doesn't directly match a physical folder