What should I do if the https domain name configuration of phpcms site cannot be submitted? The domain name format of the site should be http://www.phpcms

phpcmsv9 website-wide https background editing site domain name can’t be submitted. After you modify the site domain name to https in the background, it prompts "The format of the site domain name should be http://www.phpcms.cn/, please end with'/'", the solution:

find Open the site.php file under phpcms\modules\admin and modify it as follows in about 128 lines:

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

change into

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

//Code from www.zjkweiqi.cn

 

Guess you like

Origin blog.csdn.net/qq_41608099/article/details/108401881