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

观点

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

织梦CMS文章生成在网站根目录的方法

时间:2020-12-09

织梦文章生成在根目录的好处在于利于搜索引擎蜘蛛抓取,利于优化,像大型门户网站,基本都会这样做。

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

设置的方法,两个步骤:
1、系统设置-系统基本参数-其它选项-是否允许用目录作为文档文件名(选择是即可);
2、修改文件:
 

01 include-helpers-channelunit.helper.php,大概187行。
02 将:
03 $arr_rpvalues = array($articleDir,$y, $m, $d, $timetag, $aid, dd2char($m.$d.$aid.$y));
04             if($filename != '')
05             {
06                 $articleRule = dirname($articleRule).'/'.$filename.$GLOBALS['cfg_df_ext'];
07             }
08 改为:
09 if($filename != '')
10    {
11     $arr_rpvalues = array($articleDir,$y, $m, $d, $timetag, $filename, dd2char($m.$d.$aid.$y));
12
0