帝国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']; 后缀。
未经允许不得转载:Just My Socks中文教程网 » 帝国CMS教程:返回首页带.index.html的解决办法
Just My Socks中文教程网
【教程】帝国cms生成文章报错502 Bad Gateway解决办法
帝国CMS使用教程:百度收录/e/extend/infocomment/commentajax.php?classid=xxxx&id=xxx


