discuz中的变量$_G[‘siteurl’]设置了站点路径,为了兼容http及https同时访问,可以修改
source/class/discuz/discuz_application.php 文件
原始代码:$_G['isHTTPS'] = ($_SERVER['HTTPS'] && strtolower($_SERVER['HTTPS']) != 'off') ? true : false;
替换为:$_G['isHTTPS'] = ($_SERVER['SERVER_PORT'] == 443 || $_SERVER['HTTPS'] && strtolower($_SERVER['HTTPS']) != 'off') ? true : false;
即可解决
