得到“属性不在帐户中?检查robots.txt时

get "Property not in account? when checking robots.txt

我在搜索控制台 google 中看到许多 URL 的状态已排除,当我单击“测试 ROBOTS.TXT 阻止”时,出现以下错误:

Property not in account

You are verified to see sc-domain://, but it's not in your account.

当我点击 add property now 时什么也不会发生

当我在浏览器中将 URL 从 https://www.google.com/webmasters/tools/robots-testing-tool?siteUrl=sc-domain%3Amysite.com&path=&utm_source=search_console&utm_campaign=index-panel&hl=en 更改为 https://www.google.com/webmasters/tools/robots-testing-tool?siteUrl=https://%3Amysite.com&path=&utm_source=search_console&utm_campaign=index-panel&hl=en 时,它要求我再次将 URL 添加为 属性;虽然我已经添加了域 属性

我还清除了我的 robots.txt 以确保在超过 8 天后没有任何内容被阻止,我看到大约 150 万 URL 在搜索控制台中被阻止

我设法重现了这个问题。当您在域级别进行验证时,该工具似乎不起作用。域级属性相当新,尚不支持所有功能。但它应该提供更好的响应。

解决方法是在工具应该工作的 url 前缀级别也进行验证。

我已经在帮助->发送反馈选项下报告了这个问题。

是的,我搜索了很多 robot.txt 当我检查 robot.txt 的 URL 时,它正在工作,但是当我在搜索控制台中测试它时,它没有在测试器中打开工具,即使我是经过验证的域所有者。因此,添加 URL 前缀是在 GSC 中测试 robot.txt 的唯一解决方案。

将其从 siteUrl=sc-domain%3Aexample.com 更改为 siteUrl=https://www.example.com

这对我有用。

https://support.google.com/webmasters/thread/19217968?hl=en