如果REQUEST_URI = / test / 123,则返回404 和文件"测试"存在
htaccess的:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php
rewrite.log的一部分:
91.201.231.36 - - [22 / May / 2016:14:03:07 - 0400] [new.site.com/sid#b6228858][rid#b6b87058/initial](4)[perdir / home / www / new.site.com / htdocs /] RewriteCond:input =' /home/www/new.site.com/htdocs/test'模式='! - F' =>不匹配