织梦怎么做xml地图
1、登录织梦网站首先,我们打开自己的网站后台,打开方式因人而异,我们设置的后缀往往都是不一样的,但是系统默认的后缀一定要更改,防止别人暴力破解。

3、新建模板点击左侧的模板,选择默认模板,可以看到我们网站使用的模板都在这里面,我们因为没有sitemap模板,所以需要新建一个,点击下方新建模板。

5、编辑代码这是整个模板的代码,我们把主域名替换成自己的网址就可以了,然后点击保存。<?xml version="1.0" encoding="UTF-8"?><urlset><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='100' type='top'}<url><loc>http://主域名[field:typelink /]</loc><changefreq>daily</changefreq><priority>0.8</priority></url>{/dede:channel}{dede:arclist row=500 orderby=pubdate}<url> <loc>http://主域名[field:arcurl/]</loc> <lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod> <changefreq>0.7</changefreq></url>{/dede:arclist}</urlset>


7、完成点击浏览后我们可以看到,这个xml格式的网站地图了,这样我们的xml地图就做好了,但是,我们还是需要进入后台,将生成的文件改为我们之前用的主页模板,不然用户一进来就会看到我们的xml地图,而不是我们想要展现的页面。
