ecshop部署https(ssl)后会员无法登录的解决方案

发布时间:2018/3/8 21:35:09 打印 字号:

ecshop部署https后台无法登录解决方法:

打开includes/cls_ecshop.php(大概在第154行左右),查找代码:

return (isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) != 'off')) ? 'https://' : 'http://';

修改为:

return isset($_SERVER['HTTPS']) || (strtolower($_SERVER['HTTPS']) != 'off')||(strtolower($_SERVER['HTTP_FROM_HTTPS']) == 'on') ? 'https://' : 'http://';