帝国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’]; 后缀。
常见问题FAQ
- 免费下载或者VIP会员专享资源能否直接商用?
- 本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。
- 提示下载完但解压或打开不了?
- 找不到素材资源介绍文章里的示例图片?
- 晴天seo