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

观点

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

dede将网站地图sitemap生成到根目录

时间:2020-12-15

dede默认的网站地图sitemap是生成在data目录下,因为data目录很特别,用dede的朋友都明白,因为安全和便于收录的考虑,需要把网站地图sitemap生成到网站根目录下,共享世纪就是如此!方法如下:

详细的步骤:

1、首先登录ftp,在根目录下建立rss文件夹

2、修改根目录下你的管理员文件夹(默认是dede)下的makehtml_map.php文件

将17行的$cfg_cmspath."/data/sitemap.html";

和22行的$cfg_cmspath."/data/rssmap.html";

data/ 去掉

3、修改根目录下include下面的arc.rssview.class.php和sitemap.class.php

在arc.rssview.class.php

将71行的$murl = $GLOBALS['cfg_cmspath']."/data/rss/".$this->TypeID.".xml";

data/ 去掉

在sitemap.class.php

将57行的$typelink = $GLOBALS['cfg_cmsurl']."/data/rss/".$row->id.".xml";

和94行的$typelink = $GLOBALS['cfg_cmsurl']."/data/rss/".$row->id.".xml";

data/ 去掉

好了,生成试试吧!此外,还可以用sitemap生成软件,生成之后手动上传到网站根目录,我自己用的sitemap生成器是sitemapx,比较顺手!

0
首页
案例
关于
联系