小timu 发表于 2016-2-15 16:01:39

如何开启路由

本人新人,如何开启CI中的路由?需要设置那里?
如下设置:$route['login'] = 'welcome_controller/index';
在浏览器打开是如下显示
http://www.myclub.local/login
Not FoundThe requested URL /default was not found on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at www.myclub.local Port 80

小timu 发表于 2016-2-15 16:11:41

找到问题了,原来是没有在根目录下重写url,去除index.php:'(
页: [1]
查看完整版本: 如何开启路由