问题原文
原帖链接 · 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:
- Sitemap (Google) - https://support.google.com/webmasters/answer/183668?hl=en
- Sitemap Index (Google) - https://support.google.com/webmasters/answer/75712
- Sitemap Protocol - http://www.sitemaps.org/en_GB/protocol.html
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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
