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

Should an RSS feed be listed in a site's XML sitemap?

· 52CE 我爱测

In the sitemap.xml should I have a link to the rss.xml? <url> <loc>https://www.example.com/rss.xml</loc> <lastmod>2017-02-24</lastmod> <changefreq>monthly</changefreq> <priority>0.5</priority> </url>

问题原文

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

In the sitemap.xml should I have a link to the rss.xml?

<url>
    <loc>https://www.example.com/rss.xml</loc>
    <lastmod>2017-02-24</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
</url>

已采纳解答

原帖链接 · Stephen Ostermiller · CC BY-SA 3.0

Google doesn't typically index RSS feeds or show them in search results. You don't need to tell Google about the RSS feed in your sitemap to get it indexed.

Your sitemap should contain all the URLs that are listed in your RSS feed. If your RSS feed contains content that can't be included in your sitemap, you could list your RSS feed in the sitemap so that Google crawls everything. In most cases, that shouldn't be needed.

Your RSS feed isn't really a page on your site. One use of sitmaps is seeing how many pages you have on your site and how many of those are indexed. Your RSS feed is just going to be noise for this purpose.

Google does alert you in search console when pages listed in the sitemap return error status. If you want that alert for the sitemap, that would be a reason to include it.

Most webmasters don't list the RSS feed in their sitemap. I wouldn't do so myself, but there are a couple scenarios in which it could be beneficial.

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

资料来源与适用范围

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

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

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