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

How to tell crawler my sitemaps are in a zip file?

· 52CE 我爱测

I have 2 big sitemaps ( map1.xml, map2.xml ) and I have a index file ( indexmap.xml ) that contains the locations of these 2 files. I zip these 3 files to mymaps.zip . In Google Webmaster Tools, should I specify my sitemap is mym…

问题原文

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

I have 2 big sitemaps (map1.xml, map2.xml) and I have a index file (indexmap.xml) that contains the locations of these 2 files. I zip these 3 files to mymaps.zip.

In Google Webmaster Tools, should I specify my sitemap is mymaps.zip? Will Google figure out indexmap.xml is the index file?

已采纳解答

原帖链接 · Simon Hayter · CC BY-SA 3.0

Google Sitemap Compression Support

It's interesting to read Google's decision to use poorly worded documentation on what sitemaps are or are not supported. Here is a quote from Google Webmaster Tools regarding an error message received when uploading a archived file.

Google couldn't process your sitemap because we couldn't uncompress it. This error can occur when you compress your sitemap to reduce its size, and submit the sitemap as part of a .zip or other archive file.

The above statement would imply that it does not support zip or any other archive such as tar, rar, bzip etc. This is when it gets confusing, listed as the 'FIXED' it says:

Check your sitemap, and compress it again. Then upload the new archive file, and resubmit your sitemap.

So, it's pretty confusing when they word it like that to say the least. I decided to test this out myself out of pure interest and I confirmed what others are saying... it doesn't support zip and other file compression types other than gzip which doesn't change the file extension.

Here is a screenshot of the failure just to confirm that your not alone:

If your sitemaps are getting rather large then you should look to decrease those sizes by splitting them up into groups. For example, I use Yoast SEO which creates my sitemap and splits them up into several chunks that helps reduce the file size of each map, not req, but merely a suggestion if you want shorter duration uploads of your sitemaps, and maybe a little better at processing those maps.

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

资料来源与适用范围

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

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

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