<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

DEDECMS首页删除index.html路径的方法

时间:2020-12-15

默认的DEDECMS首页生成静态后,打开我们所用DEDECMS搭建的网站会在域名后面加上index.html路径,一来看的不是太美观,而来传言对SEM有所影响。

  那就得想办法去掉,最简单的方法就是把DEDECMS根目录下的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();  
    ?> 

  就这么简单,替换后即可。清空下你的浏览器缓存,然后再打开看看,是不是INDEX.HTML没有了

0
首页
案例
关于
联系