问题:
.htaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=302]
RewriteCond %{THE_REQUEST} //
RewriteRule ^.*$ $0 [R=302,L,NE]
答案1:
在example.com/index.php
之后放东西会导致问题,例如:example.com/index.php/index.php
或example.com/index.php/abc
不会引发404错误
但是,你可以覆盖这个,并禁用所有文件类型的路径信息:
AcceptPathInfo Off
相关文章