怎样制作dede的网站地图

 时间:2026-02-14 14:25:15

1、首先我们需要建立一个记事本,命名为sitemap.xml后保存。

2、将我提供的代码拷贝到记事本里,然后保存。

<?xml version="1.0" encoding="UTF-8"?>

<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">

<url>

<loc>http://127.0.0.1/</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://127.0.0.1[field:typelink /]</loc>

<changefreq>daily</changefreq>

<priority>0.8</priority>

</url>

{/dede:channel}

{dede:arclist row=2000 orderby=pubdate}

<url>

<loc>http://127.0.0.1[field:arcurl/]</loc>

<lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]

</lastmod>

<changefreq>monthly</changefreq>

</url>

{/dede:arclist}

</urlset>

3、将sitemap.xml文件上传到根目录/templets/default里。

4、然后登陆网站后台更新网站首页即可,如下图设置更新。

5、怎样制作dede的网站地图

  • DEDE织梦网站地图样式修改
  • 怎样用dede搭建网站?
  • 如何使用dede搭建网站
  • dede织梦更新主页同时生成更新xml网站地图方法
  • dede网站建设
  • 热门搜索
    笔记本怎么调亮度 k线怎么看 自动挡汽车怎么开 怎么戒酒 对不起用英语怎么说 怎么生儿子 胸闷是怎么回事 邹怎么读音 怎么走出失恋 簋街怎么读