織夢會員郵件驗證通知在https域名下驗證鏈接40
導讀:織夢技術織夢技術織夢會員郵件驗證通知在https域名下驗證鏈接錯誤,程序默認只支持在http://的站點,我們需要改成讓郵件支持http和https均可正常 以下文件如果你的網模板織夢dede模板免費。
織夢會員郵件驗證通知在https域名下驗證鏈接錯誤,程序默認只支持在http://的站點,我們需要改成讓郵件支持http和https均可正常
以下文件如果你的網站里有的的沒有,可跳過
1、打開 /member/index_do.php 找到,大概在31行
$url = 'http://'.preg_replace("#\/\/#i", '/', $url);
把它改成
$server_port = isset($_SERVER['SERVER_PORT']) &amdede模板安裝p;& $_SERVER['SERVER_PORT'] == '443' ? 'https://' : 'http://';
$url = $server_port.preg_replace("/^(http|https):\/\//i", "", trim($url));
2、打開 /member/reg_new.php 找到,大概在250行
$url = 'http://'.preg_replace("#\/\/#", '/', $url);
把它改成
$server_port = isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443' ? 'https://' : 'http://';
$url = $server_port.preg_replace("/^(http|https):\/\//i", "", tridede網站模板m($url));
3、打開 /member/mail.php 找到,大概在76行
$url = 'http://'.eregi_replace('//', '/', $url);
把它改成
$server_port = isset($_SERVER['SERVERdede商城模板_PORT']) && $_SERVER['SERVER_PORT'] == '443' ? 'https://' : 'http://';
$url = $server_port.preg_replace("/^(http|https):\/\//i", "", trim($url));
相關模板織夢dede模板免費。
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-07-17 ,文章織夢會員郵件驗證通知在https域名下驗證鏈接40主要講述解決方法,錯誤,域名網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_28415.html