[英]codeigniter - not routing to subfolder controller
I have a codeigniter based code which runs very well in a LAMP installation in my ubuntu machine, we moved over the code to a windows based xampp installation. 我有一个基于codeigniter的代码,可以在我的ubuntu机器上的LAMP安装中很好地运行,我们将代码移到了基于Windows的xampp安装中。
The controller structure is like this 控制器的结构是这样的
application
- controllers
-API
- test.php(a test controller)
-test
- testmore.php (a test controller)
-test.php (a test controller, and this one works only)
when we try to access application/controllers/test.php like http://localhost/<appname>/test
it works well; 当我们尝试访问诸如
http://localhost/<appname>/test
之类的application / controllers / test.php时,它运行良好; but when we try to access other controllers like http://localhost<appname>/API/test/<functionName>
it says "404 Page not found" 但是,当我们尝试访问其他控制器(例如
http://localhost<appname>/API/test/<functionName>
它显示“ 404页面未找到”
Please help. 请帮忙。
在测试文件夹的右边,有一个test.php控制器,它可能只是使您的路由混乱,摆脱它,我认为它将起作用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.