Dedecms根目次生成google sitemap站点舆图

[摘要]Dedecms在系统靠山给网站生成sitemap站点舆图时,发明织梦cms自带生成的网站舆图不给力,貌似给Google提交也不能通过,然后只能在网上找教程办理dedecms sitemap的问题,最终乐成实现dedecms google sitemap.xml文件。

  用织梦CMS搭建资讯网站大学生口试网开始琢磨利用DEDECMS,在系统靠山给网站生成sitemap站点舆图时,发明织梦cms自带生成的网站舆图不给力,貌似给Google提交也不能通过,然后只能在网上找教程办理dedecms sitemap的问题,最终乐成实现dedecms google sitemap.xml文件。

  将以下代码中的“”变动为本身的域名,接着用文本东西生存为sitemap.xml,并上传至网站当前模板目次下(如dedecms默认模板侧生存在templete/default下)

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

  进入网站靠山,在“生成——更新主页HTML”页面,对“选择主页模板”、“主页位置”参照下图配置,然后更新主页

Dedecms根目录生成google sitemap站点地图


  更新完成后,网站根目次就会生成sitemap.xml网站舆图文件。

DedeCms下载:

织梦CMS(DedeCMS) v5.7 SP1 GBK build20150618下载

Dedecms根目录生成google sitemap站点地图

界面预览

本文转自:

分享到

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/9933.html