大网数据广告活动
网站运营与故障问答

Are alternate links included in the 50,000 URL limit for sitemaps?

· 52CE 我爱测

I see the number 50,000 referenced by Google and Schema.org as the limit for the number of URLs that a sitemap can contain, however, it is unclear to me if that means <loc> elements specifically, or if that also includes other ty…

问题原文

原帖链接 · Derek Hunziker · CC BY-SA 3.0

I see the number 50,000 referenced by Google and Schema.org as the limit for the number of URLs that a sitemap can contain, however, it is unclear to me if that means <loc> elements specifically, or if that also includes other types of URLs, such as

<xhtml:link rel="alternate" hreflang="de" href="http://www.example.com/deutsch/" />

Any one of my pages may have 25 of the above alternate URLs, so I want to understand if those count towards the total.

社区高分解答

原帖链接 · MrWhite · CC BY-SA 4.0

As closetnoc suggests in comments, the 50,000 URL limit for sitemaps refers to the number of URLs in the sitemap file itself. ie. the number of <loc> elements. This is an individual sitemap limit, not a website limit. (The file must also be no larger than 50MB*1 (uncompressed) - so whichever comes first.)

(*1 Previously 10MB.)

Then you can also have a sitemap index document which itself has a limit of 50,000 sitemaps. And Google allows you to submit upto 500 sitemap indexes - so the actual URL limit that can be submitted in sitemaps is quite enormous. Of course, you don't need to submit all your URLs in sitemaps for them to be indexed.

Reference:


Regarding Sitemap Index documents... Note that there is an inconsistency on the Sitemap.org website itself. Whilst the Sitemap Protocol page states, "Sitemap index files may not list more than 50,000 Sitemaps". The FAQ page states, "A Sitemap index file can include up to 1,000 Sitemaps" (which is what Google apparently used to support sometime before 2010). Curious that both pages appear to have last been updated at the same time... 27 Feb 2008.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-09-21)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。