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

[已解决] redirect跳转的问题

[复制链接]
发表于 2017-3-5 17:22:15 | 显示全部楼层 |阅读模式

if ($data) {
    $data['is_login'] = true;
    $this->session->set_userdata($data);
    redirect('back/index');
} else {

}
为什么redirect跳转的url会是这样的http://ci.com/index.php/user/ci.com/index.php/back/index


$config['base_url'] = 'ci.com';$config['index_page'] = 'index.php';

发表于 2017-3-6 10:25:46 | 显示全部楼层
$config['base_url'] 須包含 http:// 的完整網頁路徑
发表于 2017-3-7 15:47:23 | 显示全部楼层
$config['base_url']  这里需要 http:// exp.com  这样的带http的完整路径

本版积分规则