帝国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']; 后缀。
本文来源:帝国模板--帝国cms 7.0版返回首页带.index.html的解决办法
加入我们:微信:搜索“Moyu-Blog” 帝国CMS模板客户群:QQ二群---909235407 QQ一群(已满)---106997031
版权声明:本文采用[BY-NC-SA]协议进行授权,如无特别说明,转载请注明本文地址!