百度 | 神马 | 搜狗 | 技术文档 | 学习资料分享 - 记录帝国CMS及运维技术的点点滴滴
你的位置:首页 > 帝国cms技术 » 正文

帝国CMS 7.0版返回首页的解决方案。index.html

发布时间:2020-11-07

作品分类:帝国cms  返回首页

帝国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']; 后缀。

 

Top