mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
Simplify .htaccess
The request can be captured in the RewriteRule, removing need for it to be captured in it's own RewriteCond.
This commit is contained in:
parent
b3acbcfa5f
commit
59b696f0f2
@ -28,10 +28,9 @@ ErrorDocument 500 /assets/error-500.html
|
||||
RewriteRule silverstripe-cache(/|$) - [F,L,NC]
|
||||
RewriteRule composer\.(json|lock) - [F,L,NC]
|
||||
|
||||
RewriteCond %{REQUEST_URI} ^(.*)$
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_URI} !\.php$
|
||||
RewriteRule .* framework/main.php?url=%1 [QSA]
|
||||
RewriteRule (.*) framework/main.php?url=$1 [QSA]
|
||||
|
||||
RewriteCond %{REQUEST_URI} ^(.*)/framework/main.php$
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
|
Loading…
Reference in New Issue
Block a user