织梦全国城市分站静态生成插件生成sitemap地图


1.首先您的织梦网站需要有生成sitemap的功能!织梦地图生成插件推荐:《织梦生成网站地图sitemap插件_最好用织梦网站地图》,这个插件的sitemap模板是/templets/plus/sitemap.xml这个文件,此教程是必须安装这个插件《织梦dede实现多城市分站静态生成版(有演示支持手机端)》

2.修改您的织梦sitemap的模板,在底部加上这样的调用:

{dede:fenzhan}
<url>
<loc>{dede:field name='typeurl'/}</loc>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
{dede:city}
<url>
<loc>[field:arcurl/]</loc>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
{/dede:city}
{/dede:fenzhan}

添加后的截图:

3.更新织梦sitemap即可!