帝国CMS模板的 返回首页 会带有 index.html 后缀。
通过以下方法修改可去掉index.html
找到e/class/connect.php文件
查找:
1
2
3
4
5
6
7
8
9
10
//返回首页地址
function
ReturnSiteIndexUrl(){
global
$public_r
;
if
(
$public_r
[
'indexpagedt'
])
{
$public_r
[
'indextype'
]=
'.php'
;
}
$file
=
$public_r
[
'newsurl'
].
'index'
.
$public_r
[
'indextype'
];
return
$file
;
}
修改为:
1
2
3
4
5
6
7
8
9
10
//返回首页地址
function
ReturnSiteIndexUrl(){
global
$public_r
;
if
(
$public_r
[
'indexpagedt'
])
{
$public_r
[
'indextype'
]=
'.php'
;
}
$file
=
$public_r
[
'newsurl'
];
return
$file
;
}
也就是去掉 $file=$public_r['newsurl']; 后缀。
不要再以任何人说你,因为你不是为任何人而活,你只为自己而活,