
看了apache的错误日志,提示是这样的,
Negotiation: discovered file(s) matching request:
/var/www/tptest/index (None could be negotiated).
,貌似是说找到多个可能的路径,无法决定是哪个?.htaccess文件内容如下
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
从结果来看,重写规则没有执行,因为如果执行了到话会被路由到Xx模块下的index方法,而不是出现404 not found。弄了一下午了还没搞懂,虽然可以避免用index,但总觉得这里有点迷糊。
最佳答案
