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

Why do some websites hide their sitemaps and exclude mentioning it from the robots.txt file? Does this affect SEO at all?

· 52CE 我爱测

A lot of websites hide their sitemap.xml file. What I mean by this is that they make the URL something that a person cannot guess and then do not mention them in the robots.txt file. So my question is why would a website do this?…

问题原文

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

A lot of websites hide their sitemap.xml file.

What I mean by this is that they make the URL something that a person cannot guess and then do not mention them in the robots.txt file.

So my question is why would a website do this?

And does this affect SEO?

社区高分解答

原帖链接 · Raul Reyes · CC BY-SA 4.0

This will not affect your SEO. Any web crawler will be able to find a website's HTML sitemap as long as there is a link pointing to it.

Remember that you can submit your sitemap to most search engines consoles. You do not need to mention it in the robots.txt. Using any search engines console UI you could submit sitemap-name-you-would-like.xml you do not need to specify it in your robots.txt nor a link in your website.

There are many reasons why you would prefer to hide your XML sitemap. For example, you would want to hide the XML Sitemap from your competitors and everyone that automatically or manually wants to learn about the content on your website.

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

资料来源与适用范围

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

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

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