织梦的首页,我们输入域名的时候去自动添加index.html后缀,这样的话会被百度引擎判定为跳转,会分散权得,那么怎么样才能把首页的index.html后缀给去掉呢?
1、空间和虚拟主机一般有个默认文档,我们需要将index.html放在最前面,如图:

2、还得修改网站根目录下index.php,找到代码:
修改为:
3、重新生成首页,然后更新缓存,搞定收工。
1、空间和虚拟主机一般有个默认文档,我们需要将index.html放在最前面,如图:

2、还得修改网站根目录下index.php,找到代码:
header('HTTP/1.1 301 Moved Permanently');
header('Location:index.html');
修改为:
include(dirname(__FILE__).'/index.html');
exit();
3、重新生成首页,然后更新缓存,搞定收工。