<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">

观点

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

织梦文章生成在根目录

时间:2020-12-15

今天笔者从织梦论坛上看到一个网友分享到把文章生成在根目录,这样分享是值得借鉴和应用的,对于SEO比较好,省去中间很多URL地址,更利于蜘蛛索取,相对于生成在栏目下的文章页的权重要高。

设置的方法,两个步骤:
1、系统设置-系统基本参数-其它选项-是否允许用目录作为文档文件名(选择是即可);
2、修改文件:
include-helpers-channelunit.helper.php,大概187行。
将:
$arr_rpvalues = array($articleDir,$y, $m, $d, $timetag, $aid, dd2char($m.$d.$aid.$y));
            if($filename != '')
            {
                $articleRule = dirname($articleRule).'/'.$filename.$GLOBALS['cfg_df_ext'];
            }
改为:
if($filename != '')
   {
    $arr_rpvalues = array($articleDir,$y, $m, $d, $timetag, $filename, dd2char($m.$d.$aid.$y));
    }
   else
   {
   $arr_rpvalues = array($articleDir,$y, $m, $d, $timetag, $aid, dd2char($m.$d.$aid.$y));
   }


代码是网友分享的,值得借鉴,不过还没有检验结果,如果不行,请告知织梦58,防止误导大家。
0
首页
案例
关于
联系