原地址:https://www.ctvol.com/seoomethods/2119.html
phpcmsv9 全站https后台编辑站点域名无法提交,在后台修改站点域名为https提交后提示“站点域名格式应该为http://www.phpcms.cn/,请以‘/’结束”,解决办法:
在目录/phpcms/modules/admin/site.php文件(大约在128行左右)
if (!empty($domain) && !preg_match('/http:\/\/(.+)\/$/i', $domain)) {
showmessage(L('site_domain').L('site_domain_ex2'));
}
修改成为:
if (!empty($domain) && !preg_match('/https:\/\/(.+)\/$/i', $domain)) {
showmessage(L('site_domain').L('site_domain_ex2'));
}
<!—www.ctvol.com _猴子学习网_分享各种技术需求-->
保存上,就可以在phpcms后台解决不能设置https问题。