Fixing .htaccess to ignore rewriting PHP files directly

This commit is contained in:
Sean Harvey 2012-12-04 14:36:59 +13:00
parent 9106e41498
commit 449cce95a7

View File

@ -1281,6 +1281,7 @@ ErrorDocument 500 /assets/error-500.html
$baseClause
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !\.php$
RewriteRule .* $modulePath/main.php?url=%1&%{QUERY_STRING} [L]
</IfModule>
TEXT;