如果首页中有index.html不利于SEO,蜘蛛用主域名跟踪到你网站的时候结果多了个index.html,结果导致分散了权重解决方法:将根目录下的index.PHP文件更改为:
<?php
if(!file_exists(dirname(__FILE__)。'/data/common.inc.php')){
header('Location:install/index.php');
exit();
}
require_once (dirname(__FILE__) . "/include/common.inc.php");require_once DEDEINC."/arc.partview.class.php";$GLOBALS['_arclistEnv'] = 'index';
$row = $dsql->GetOne("Select * From `dede_homepageset`");$row['templet'] = MfTemplet($row['templet']);$pv = new PartView();
$pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row['templet']);$pv->Display();
?>
未经允许不得转载! 作者:壹世,转载或复制请以https://www.ym-ym.com/jianzhan/330.html并注明出处壹世品牌网。
原文地址:《dedecms织梦首页去index.html》发布于:2021-01-27
还没有评论,来说两句吧...