0

哪个重写规则会更快?

首先有很多例外: RewriteCond %{REQUEST_FILENAME} ^/index.php$ [OR] RewriteCond %{REQUEST_FILENAME} ^/kernel/.+$ [OR] RewriteCond %{REQUEST_FILENAME} ^/resource/.+$ [OR] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f

或第二个子请求: RewriteCond %{REQUEST_FILENAME} ^/index.php$ [OR] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-F

4

0 回答 0