XML网站地图(域名结构)

XML网站地图是一个结构化文件,列出域名的重要URL,帮助搜索引擎发现和优先爬取。对于大型或复杂域名,网站地图索引文件引用按版块组织的多个子网站地图,例如/sitemap-blog.xml、/sitemap-products.xml,每个文件须在50,000个URL和50 MB限制以内。网站地图通过Google Search Console提交,对[[backlinks|反向链接]]稀少的新域名尤其有价值,可提供直接爬取路径。[[robots-txt|robots.txt]]文件应包含网站地图索引的位置。

示例

A 500,000-page e-commerce site uses a sitemap index at /sitemap.xml referencing 50 category sitemaps of 10,000 URLs each, ensuring all products are discovered without exceeding file size limits.