织梦DEDECMS创建sitemap.xml

作者: 本站原创  发布时间:  浏览:

随着百度平台的开放,很多站长开始创建sitemap.xml提交给百度,用来提高网站收录,很多站长在忙着创建sitemap.xml,今日秀站网可乐分享织梦DEDECMS如何创建sitemap.xml。
导火索:百度作为中国第一大搜索,相继推出了绿萝算法和互联网生态,K了大批的网站,在站长中口碑中略受影响,站长普遍认为百度是封闭的偏盈利性的组织,百度最近段时间,开放了透明了很多SEO常识和工具,用来抚慰受伤的站长。

织梦本身有sitemap.xml创建功能,不过不太用,下面介绍的sitemap.xml符合百度sitemap.xml收录的标准!

织梦DEDECMS创建sitemap.xml步骤:

1:创建sitemap.xml文件,并放入模板文件夹中,sitemap.xml里面的代码为:

<?xml version="1.0" encoding="UTF-8" ?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.9">
<url>
  <loc>http://www.xiuzhanwang.com/</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://www.xiuzhanwang.com{dede:field name='typeurl'/}</loc>
  <changefreq>daily</changefreq>
  <priority>0.8</priority>
</url>
{/dede:channel}
{dede:arclist row=2000 orderby=pubdate}
<url>
   <loc>http://www.xiuzhanwang.com[field:arcurl/]</loc>
   <lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod>
   <changefreq>monthly</changefreq>
   <priority>0.5</priority>
</url>
{/dede:arclist}
</urlset>

创建好文件之后,把sitemap.xml放入模板文件夹中。
温馨提示:记得把网址改为自己的网址哦!

2:接着更新网站首页,设置如下图:
织梦CMS创建sitemap.xml方法。


方法很简单,方便修改,广大织梦CMS爱好者记得多分享!

上一篇:织梦DEDECMS导航高亮显示

下一篇:织梦DEDE首页、列表调用所有图集方法

相关文章

织梦打官司赢了还是输了

dedecms织梦网站停止使用了还侵权吗

被织梦起诉的案例

织梦中英文等多语言站点分页方法

织梦dede:arclist及dede:list调用tag标签(适用

添加微信
添加微信,免费咨询

15205695834

新手指南支付购买售后服务关于我们版权合规
合肥秀站网络科技有限公司
Copyright 2002-2022 麦站 版权所有
皖ICP备12018676号 网站地图