phpcms站点域名配置https无法提交怎么解决?

phpcmsv9 全站https后台编辑站点域名无法提交,在后台修改站点域名为https提交后提示“站点域名格式应该为http://www.phpcms.cn/,请以‘/’结束”,解决办法:

找开 phpcms\modules\admin 下的 site.php文件,在大约128行修改如下:

if (!empty($domain) && !preg_match('/http:\/\/(.+)\/$/i', $domain)) {

修改为

if (!empty($domain) && !preg_match('/https:\/\/(.+)\/$/i', $domain)) {



猜你喜欢

转载自blog.csdn.net/a1079540945/article/details/79776704
今日推荐