您现在的位置: 万盛学电脑网 >> 程序编程 >> CMS教程 >> 正文

dedecms 制作百度sitemap.xml教程

作者:佚名    责任编辑:admin    更新时间:2022-06-22

class="area">            今天电脑知识吧的小编为大家分享一篇教程,dedecms 制作百度sitemap.xml教程,那么具体操作如下:dede CMS v5.7制作百度sitemap.xml。据说新版的cms不支持xml,但是经过测试,还是成功了。 下面是步骤: 新建sitemap.xml,复制以下代码,将代码中的http://.换成你的域名。保存后上传到/templets/default/下。
<?xml version=”1.0″ encoding=”UTF-8″?><urlset xmlns=”http://www.google.com/schemas/sitemap/0.84″>
<url>
<loc>http://./</loc>
<lastmod>{dede:arclist row=1 titlelen=24 orderby=pubdate}
[field:pubdate function=strftime('%Y-%m-%d',@me)/]
{/dede:arclist}</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
{dede:channel row=’23′ type=’top’}
<url>
<loc>http://.[field:typelink /]</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
{/dede:channel}
{dede:arclist row=2000 orderby=pubdate}
<url>
<loc>http://.[field:arcurl/]</loc>
<lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod>
<changefreq>monthly</changefreq>
</url>
{/dede:arclist}</urlset>
然后登录网站的后台,点击生成-更新主页html,按照如下图所示填写,点击更新。sitemapsitemap
OK,网站地图sitemap.xml的地址为,http://./sitemap.xml。
部分情况,可能会出现主页也变了,不用担心,按照下面的设置重新生成一遍主页即可:2014-02-25_095223