sitemap网站地图怎么做?XML格式说明与提交方法

· 作者:站长资源 · 7 阅读 · SEO优化

Sitemap 帮助搜索引擎发现网站页面。本文介绍 XML sitemap 格式、更新频率设置,以及在 robots.txt 和站长平台提交的方法。

XML Sitemap 格式

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n  <url><loc>https://www.example.com/</loc><lastmod>2026-11-16</lastmod></url>\n</urlset>

单个 sitemap 文件最多 50000 个 URL,超出时使用 sitemap 索引文件拆分。

提交方式

  1. 在 robots.txt 中添加 Sitemap 声明;
  2. 在百度搜索资源平台、Bing Webmaster Tools、Google Search Console 中提交;
  3. 新内容发布后配合百度普通收录 API 主动推送。

本程序后台内置 sitemap 自动生成和百度主动推送功能。

标签: