创建 sitemap.htm 织梦模板
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http://www.xxx.com/</loc> <lastmod>2016-01-09</lastmod> <changefreq>daily</changefreq> <priority>0.9</priority> </url> {dede:channel type='top' row='20'} <url> <loc>http://www.xxx.com[field:typelink/]</loc> <lastmod>2016-01-09</lastmod> <changefreq>weekly</changefreq> <priority>0.8</priority> </url> {/dede:channel} {dede:arclist row=10000} <url> <loc>http://www.xxx.com[field:arcurl/]</loc> <lastmod>[field:pubdate function=MyDate('Y-m-d',@me)/]</lastmod> <changefreq>yearly</changefreq> <priority>0.6</priority> </url> {/dede:arclist} </urlset>
进入织梦后台,点击“核心”菜单,选择“自由列表管理”
点击“增加列表”
填写对应的信息,点击“保存列表”
点击“更新”按钮
两个“0”代码更新所有的文章,点击“开始生成HTML”
效果图: