nginx不会,但apache下控制器index总是not found

浏览:927 发布日期:2016/10/10 分类:求助交流
以下问题在nginx没有,在apche下唯独访问index控制器时出现
入口文件是index.php,index控制器是IndexController.class.php
已经做了rewrite隐藏index.php

apache下访问index控制器下的任何方法总是提示
not found
The requested URL /sports/index was not found on this server.

http://localhost/index
http://localhost/index/edit
但
http://localhost/
http://localhost/test
http://localhost/test/edit
都可以正常访问, 访问其他控制器都正常

http://localhost/后面加个index就not found
也就是说在路径中加了index/,总会提示not found,

把入口文件index.php改成home.php或者admin.php,并隐藏访问,就没这种问题



最佳答案
评论() 相关
后面还有条评论,点击查看>>