重新更改网站域名加https就不会弹出错误提示了
phpcms站点域名配置https无法提交,在后台改削站点域名为https提交后提示“站点域名格局应该为,,请以‘/’结束”,这个要如何改削呢?通过关键词定位我们找到文件的改削路径/phpcms/modules/admin/site.php,第一步:概略89行找到
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‘)); }
第二步:再找到255行摆布
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‘)); }
生存上传,从头变动网站域名加https就不会弹堕落误提示了。
phpcms站点域名配置https无法提交如何措置惩罚惩罚
温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/32308.html