首页 > 教程 >
织梦会员邮件验证通知在https域名下验证链接404错误的解决方法
2023-02-27教程围观次
简介织梦会员邮件验证通知在https域名下验证链接错误,程序默认只支持在http://的站点,我们需要改成让邮件支持http和https均可正常以下文件如果你的网站里有的的没有,可跳过1、打开/member/index_do.php找到,大概在31行$url='http://'.preg_replace("#//#i",'/',$url);把它改成$server_port=isset($_SERVER
织梦会员邮件验证通知在https域名下验证链接错误,程序默认只支持在http://的站点,我们需要改成让邮件支持http和https均可正常
以下文件如果你的网站里有的的没有,可跳过
1、打开 /member/index_do.php 找到,大概在31行
$url = 'http://'.preg_replace("#//#i", '/', $url);
把它改成
$server_port = isset($_SERVER['SERVER_PORT']) && $_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", "", trim($url));
3、打开 /member/mail.php 找到,大概在76行
$url = 'http://'.eregi_replace('//', '/', $url);
把它改成
$server_port = isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443' ? 'https://' : 'http://';
$url = $server_port.preg_replace("/^(http|https):///i", "", trim($url));
下载链接:网站源码/小程序源码/网站模板下载
下载排行
- 群多多社群人脉H5-2.1.4多开插件+小程序独立前端+搭建教程
- 慧眼识花草微信小程序源码/植物辨别微信小程序源码
- 微信小程序格创校园跑腿小程序源码v1.1.64+前端
- 最新仿720云全景制作源码|krpano仿720云全景网站源码
- 抖音艺术签名小程序源码/艺术签名设计小程序源码/字节跳动小程序开发
- 2022年新版电影小程序商业版+前端无后门+搭建教程亲测
- 图片编辑小程序源码/拼图小程序源码
- 美女图片站 CX-UDY3.1最新破解版全解密去授权版无限制
- 苹果CMS V10专享版MXoneV10.6魔改版影视网站模板/二开大气短视频网站模板
- 橘猫视频去水印微信小程序源码/自定义接口/PHP后端对接