修改DedeCms不跳转至index.html页面的方法
用织梦dedecms搭建网站,一般访问首页的时候,他会跳转至带有index.html的页面上,这样对网站权重传递方面会造成一些影响。我们可以通过修改代码实现不跳转至index.html页面。
用dreamweaver或者记事本打开include/channelunit.func.php页面
查找:
$reurl = $typedir.'/'.$defaultname;
替换为:
$reurl = $typedir.'/';
修改完成后就不会再跳转至index.html页面了。 www.zzarea.com
转载于:https://blog.51cto.com/qingyun/606885