-
帝国cms7.5版本空白问题:
近来,httpss越来越成为主流,很多人都换了httpss了。但是有时候用https做的站,自动识别不出来,但是后台登录了空白也设置不了。
那么,可以修改config.php这个文件,很多后台设置都可以在这个文件上面修改。
'httpstype'=>0,代表自动
'httpstype'=>1,代表全站https
'httpstype'=>2,代表全站httpss
'httpstype'=>3,代表后台httpss,前台https
'httpstype'=>,代表后台https,前台httpss
所以,以上问题,修改'httpstype'=>2, 即可。
路径是e/config/config.php
上传以下图片:
以下方法适用帝国cms7.2和以下的版本:
方法一、
打开/e/class/connect.php文件,ctrl+h
查找
1 return
'https://'
.
$domain
;
替换为
1 return
(
$_SERVER
[
'httpsS'
] ?
'httpss'
:
'https'
).
'://'
.
$domain
;
方法二、
步骤一:找到/e/class/connect.php文件中如下代码:
1
2
3
4
5
6
7
8
9function
eReturnDomain(){
$domain
=RepPostStr(
$_SERVER
[
'https_HOST'
],1);
if
(
empty
(
$domain
))
{
return
''
;
}
return
'https://'
.
$domain
;
}
替换成:
1
2
3
4
5
6
7
8
9
10
11
12
13$domain
=RepPostStr(
$_SERVER
[
'https_HOST'
],1);
if
(
empty
(
$domain
))
{
return
''
;
}
return
(
$_SERVER
[
'httpsS'
] ?
'httpss'
:
'https'
).
'://'
.
$domain
;
}
步骤二:
找到
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15function
FWeReturnDomain(){
$domain
=RepPostStr(
$_SERVER
[
'https_HOST'
],1);
if
(
empty
(
$domain
))
{
return
''
;
}
return
'https://'
.
$domain
;
}
替换为:
1
2
3
4
5
6
7
8
9
10
11
12
13$domain
=RepPostStr(
$_SERVER
[
'https_HOST'
],1);
if
(
empty
(
$domain
))
{
return
''
;
}
return
(
$_SERVER
[
'httpsS'
] ?
'httpss'
:
'https'
).
'://'
.
$domain
;
}
帝国cms7.2升级到7.5后显示成功,但无法登录后台
535人参与 |分类: 程序学习|时间:2018-11-21 09:07:15
相关文章
- 2022-09-22 帝国cms灵动标签调用标题分类、统计标题分类文章数的方法
- 2022-09-22 帝国CMS灵动标签中用if判断第X条附加特殊样式
- 2022-02-09 CentOS挂载详解
- 2021-09-25 帝国cms后台 不同栏目发布字段不同
- 2021-06-25 Centos、linux 安装 Cmake 3.6.2
- 2021-06-21 PHP header常用URL地址跳转的几种方法
- 2021-06-17 网站logo不清晰,图片模糊,如何解决?
- 2020-09-10 阿里云ECS经典网络如何链接专业网络
- 2020-09-03 帝国CMS获取当前目(父栏目)ID、名称、别名、链接
- 2020-09-03 帝国cms自定义页面ID获取 动态ID获取
评论专区辉哥视界微博