开发者

Is there a maximum size for sitemap files?

I was wondering: Is there a maximum size for sitemap files? I'm trying to build a shopping site and I don't know if it's going to support constant size increasing dynamicaly. I don't even know if it is the correct way to put the products to b开发者_开发知识库e find by the search engines.


The limits are:

  1. maximum 50000 urls
  2. max 10MB file size (after un-gzipping).

Both limis apply.

Taken from here


Quote from the sitemaps.org FAQ:

Sitemaps should be no larger than 50MB (52,428,800 bytes) and can contain a maximum of 50,000 URLs. These limits help to ensure that your web server does not get bogged down serving very large files. This means that if your site contains more than 50,000 URLs or your Sitemap is bigger than 50MB, you must create multiple Sitemap files and use a Sitemap index file. You should use a Sitemap index file even if you have a small site but plan on growing beyond 50,000 URLs or a file size of 50MB. A Sitemap index file can include up to 50,000 Sitemaps and must not exceed 50MB (52,428,800 bytes). You can also use gzip to compress your Sitemaps.

The above answer can be considered authoritative. According to sitemaps.org's terms of service, as of May 2017, sitemaps.org is sponsored by: Google, Inc., Yahoo, Inc., and Microsoft Corporation


http://productforums.google.com/forum/#!topic/webmasters/nd5RDhMMfhk

Q:

I've read the FAQs and searched the help center.

This URL indicates the max sitemap file size is 50 MB, uncompressed: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=183668#1

This URL indicates the max sitemap file size is 10 MB, uncompressed: http://www.sitemaps.org/faq.html#faq_sitemap_size

A:

Both are correct! How?

On sitemaps.org the 10MB figure is the standard figure in the standard protocol.

Google later decided to INCREASE the upper limit to 50MB for people submitting to Google, so that's why it says 50MB on the google help notes.

If you want your XML Sitemaps to be compatible not only with google but others that accept XML Sitemaps, you might still want to limit each to a maximum filesize of 10MB (i.e. regardless of compressed or uncompressed should never exceed 10MB).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜