mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #993 from halkyon/htaccess_fix
Fixing .htaccess to ignore rewriting PHP files directly
This commit is contained in:
commit
b63e55a77a
@ -1281,6 +1281,7 @@ ErrorDocument 500 /assets/error-500.html
|
|||||||
$baseClause
|
$baseClause
|
||||||
RewriteCond %{REQUEST_URI} ^(.*)$
|
RewriteCond %{REQUEST_URI} ^(.*)$
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_URI} !\.php$
|
||||||
RewriteRule .* $modulePath/main.php?url=%1&%{QUERY_STRING} [L]
|
RewriteRule .* $modulePath/main.php?url=%1&%{QUERY_STRING} [L]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
TEXT;
|
TEXT;
|
||||||
|
Loading…
Reference in New Issue
Block a user