lovesong 发表于 2014-3-25 11:41:38

为何自动生成路径后会变成https

redirect('c=jiatupian', 'refresh');

如这样
网站直接跳转到https://xxx.com/index.php?c=jiatupian
https 于是就报错了

如果用分页的话 自动生成的路径也是带https的 哪里可以配置

^淡如清风 发表于 2014-3-25 14:54:01

config.php

$config['base_url']    = '';
这个域名填错?

don 发表于 2014-4-19 16:21:37

我也遇到过这个问题,我使用的是nginx服务器,原来是因为$_SERVER['HTTPS']的问题。改改一个文件就解决了。

解决参考
http://www.chenyudong.com/archives/fix-codeigniter-detect-https-url.html

页: [1]
查看完整版本: 为何自动生成路径后会变成https