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

[已解决] nginx环境下 只跳转welcome/index 其他方法找不到又跳到wel.../index

[复制链接]
发表于 2016-10-26 18:37:59 | 显示全部楼层 |阅读模式
不管访问什么方法  http://xxxx/index.php/welcome/index  都跳转到这

http://xxx/index.php/welcome/index2  访问不到 或者http://xxxxxx/index.php/welco1231312rffefddme/inde12312x   后面乱写也是直接访问index

Nginx 配置

Nginx 配置

方法

方法

框架日志

框架日志
发表于 2016-10-26 18:59:20 | 显示全部楼层
这不是 CI 代码的问题,是 nginx 配置问题,CI 的 nginx 配置参考官方的配置 https://www.nginx.com/resources/ ... ecipes/codeigniter/
回复 支持 1 反对 0

使用道具 举报

 楼主| 发表于 2016-10-26 18:38:17 | 显示全部楼层
求大神帮助
 楼主| 发表于 2016-10-27 10:54:55 | 显示全部楼层
Hex 发表于 2016-10-26 18:59
这不是 CI 代码的问题,是 nginx 配置问题,CI 的 nginx 配置参考官方的配置 https://www.nginx.com/resour ...

谢谢,已经解决
发表于 2019-5-21 10:38:47 | 显示全部楼层
$config['uri_protocol']        = 'PATH_INFO';

本版积分规则