您现在的位置是:首页 > cms教程 > 帝国CMS教程帝国CMS教程

帝国cms7.0返回首页带index.html怎么办

静诗2023-05-04 21:32:34帝国CMS教程已有33人查阅

导读帝国CMS模板的 返回首页 会带有 index.html 后缀。通过以下方法修改可去掉index.html。找到e/class/connect.php文件

帝国CMS模板的 返回首页 会带有 index.html 后缀。通过以下方法修改可去掉index.html。找到e/class/connect.php文件
查找:

//返回首页地址
function ReturnSiteIndexUrl(){
    global $public_r;
    if($public_r['indexpagedt'])
    {
        $public_r['indextype']='.php';
    }
    $file=$public_r['newsurl'].'index'.$public_r['indextype'];
    return $file;}

修改为:

//返回首页地址
function ReturnSiteIndexUrl(){
        global $public_r;
        if($public_r['indexpagedt']
        {
                $public_r['indextype']='.php';
        }
        $file=$public_r['newsurl'];
        return $file;}

也就是去掉 $file=$public_r['newsurl']; 后缀。

本文标签:

很赞哦! (15)

暂无内容
暂无内容
暂无内容
暂无内容
留言与评论 (共有 0 条评论)
昵称:
匿名发表 登录账号
         
验证码:
    暂无内容
    暂无内容

相关标签

    暂无内容