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:
Tim Snadden 2014-05-06 07:54:59 +12:00
parent b3acbcfa5f
commit 59b696f0f2

View File

@ -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