用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1049|回复: 1
收起左侧

[已解决] 如何开启路由

[复制链接]
发表于 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
 楼主| 发表于 2016-2-15 16:11:41 | 显示全部楼层
找到问题了,原来是没有在根目录下重写url,去除index.php

本版积分规则