The problem is locked!
5
follow
3596
views

设置https后,注册页面跳转链接多了“http://www”怎样修改?

AI智能回复搜索中,请稍后...

Why is it folded? 0 个回复被折叠
Alu 初级会员 User from: 广东省深圳市宝安区
2018-08-20 10:28
可能这个函数未识别到你的HTTPS functions.inc.php   server { listen 80; server_name localhost; // 你的域名 rewrite ^(.*) https://$server_name$1 permanent; }
/**
 * 获取站点根目录 URL
 *
 * @return string
 */
function base_url()
{
	$clean_url = isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : NULL;
	$clean_url = dirname(substr($_SERVER['PHP_SELF'], 0, strlen($_SERVER['PHP_SELF']) - strlen($clean_url)));
	$clean_url = rtrim($_SERVER['HTTP_HOST'] . $clean_url, '/\\');

	if ((isset($_SERVER['HTTPS']) AND !in_array(strtolower($_SERVER['HTTPS']), array('off', 'no', 'false', 'disabled'))) OR $_SERVER['SERVER_PORT'] == 443)
	{
		$scheme = 'https';
	}
	else
	{
		$scheme = 'http';
	}

	return $scheme . '://' . $clean_url;
}
huangzj 注册会员 User from: 安徽省合肥市
2018-08-17 08:33
用的nginx还是apache,贴一下配置
fanta 超级管理员 User from: 安徽省合肥市
2018-08-16 17:35
您的这个问题哪里是修改代码的问题呢,而且估计不仅仅是注册,别的链接也可能有问题吧。 使用nginx吗?请把相关的配置贴出来。

About the author

Strom 注册会员

This guy is lazy,Introduction has not been set

Problem dynamics

Release time
2018-08-16 17:29
Update time
2018-08-20 10:31
Focused
5 people pay attention to

Related issues

请教一下用户发过的帖子审核通过后如何不让它再去修改 这是一个很可怕的功能
开启qq互联登录(appid 已经通过审核、后台也设置)登录出现错误
伪静态设置好了,直接访问地址是可以的,但实际链接还是原来的
title 的中杠 - 怎么修改成_下杠??
回复的设置问题
搜索右边的导航怎么设置
可以设置匿名提问/回答的选择吗?
为什么设置现居地是就会自动加入为话题?
站点邮件如何设置?
开启了积分系统后,每个人就默认2000积分,这个2000在哪里改呢?后台能设置否?

Recommended content

貌似无法加载jquery?
网站怎么开启https
发生错误, 返回的信息: {"rsm":{"url":"http:\/\/abc.com\/?\/account\/valid_email\/"},"errno":1,"err":null}
wecenter可否设置注册无需邮箱?
注册 Segmentfault 输入密码时惊现裸体女神图像
限制注册机注册
新版本注册不提示
最新版注册时候出现两个错误
推荐一个注册验证的插件系统
为什么注册用户已经进入普通用户组,却显示邮件未认证
All Rights Reserved Powered BY WeCenter V4.1.0 © 2023 粤ICP备17116736号