phpcms站點域名配置https沒法提交如何處理

  一位網友給ytkah反映說phpcms站點域名配置https沒法提交,在後臺修改站點域名爲https提交後提示「站點域名格式應該爲http://www.phpcms.cn/,請以‘/’結束」,這個要如何修改呢?經過關鍵詞定位咱們找到文件的修改路徑/phpcms/modules/admin/site.php,第一步:大概89行找到php

if (!empty($domain) && !preg_match('/http:\/\/(.+)\/$/i', $domain)) {
				showmessage(L('site_domain').L('site_domain_ex2'));
			}

  將它改爲dom

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'));
				}

  改爲spa

if (!empty($domain) && !preg_match('/https:\/\/(.+)\/$/i', $domain)) {
					showmessage(L('site_domain').L('site_domain_ex2'));
				}

  保存上傳,從新更改網站域名加https就不會彈出錯誤提示了。blog

相關文章
相關標籤/搜索