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

Are there specific advantages or disadvantages of an XML sitemap over a TXT based sitemap?

· 52CE 我爱测

Are there any specific advantages or disadvantages in generating an XML based sitemap in place of a simple txt based sitemap (list of URLs)? I realize that in the XML format I can set priority and last-modified date, but it is no…

问题原文

原帖链接 · cboettig · CC BY-SA 3.0

Are there any specific advantages or disadvantages in generating an XML based sitemap in place of a simple txt based sitemap (list of URLs)?

I realize that in the XML format I can set priority and last-modified date, but it is not clear what benefit, if any, in terms of SEO, etc, this provides. (For instance, what benefit would there be to setting a low priority, other than possible reducing robot crawl load?) Explicitly stating this information also increases the probability of a mistake -- some modification date not getting updated correctly, etc.

已采纳解答

原帖链接 · JCL1178 · CC BY-SA 3.0

There is no fundamental disadvantage to text-only sitemaps aside from what you've touched on. Setting the priority and last-modified date can affect the crawl frequency and on a large site with both frequently and infrequently changing content that can be very important.

XML sitemaps can also carry media information (e.g. video sitemap) and if you have that kind of site that may be important to you.

But if you have a smaller site with mostly set/static content there is probably very little functional difference between text and XML sitemaps.

Explicitly stating this information also increases the probability of a mistake -- some modification date not getting updated correctly

No more of a risk that somehow outputting the wrong URLs in the text version

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

资料来源与适用范围

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

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

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