后台路径的问题
本帖最后由 suxiaolu 于 2010-5-16 21:42 编辑网站前台URL:http://localhost/app
网站后台URL:http://localhost/app/admin
目录结构:
controllers/home.php
controllers/admin/home.php
routes.php:
$route['default_controller'] = "home";
前台可以正常访问,为什么访问后台总是404,但http://localhost/app/admin/home/index,http://localhost/app/admin/home都是可以访问的,只是http://localhost/app/admin不能访问。 你这个问题很奇怪 -_- 是不是 IIS?
我这里完全正常。 不,用的是apache,很郁闷。。 你设置了路由规则了没? 本帖最后由 suxiaolu 于 2010-5-16 23:26 编辑
设置了一个,但我认为不应该影响访问admin
$route['(application/.*)'] = "training/$1";
难道是因为我使用了hmvc的原因? 如何使用的 HMVC? http://codeigniter.com/wiki/Modular_Extensions_-_HMVC/
用的就是这个 你的 404 是 CI 的 404? 对,CI的404 那看来还是路由有问题,还是把你的代码都贴上来吧,否则也不知道哪里有问题。
页:
[1]
2