我创建了一个 web 应用程序并使用 wordpress 托管这个网站。当我在 goole 中搜索名称时,它显示
A description for this result is not available because of this site's robots.txt
为什么会这样。元标记有问题吗?
最佳答案
您网站的 robots.txt 文件不允许抓取您在 Google 搜索中找到的网页。这意味着 Google 的机器人不会访问此页面来阅读其内容。
robots.txt 文件存在于 URL /robots.txt,例如,http://example.com/robots.txt。
您需要查找并检查以 Disallow::
Disallow:允许一切Disallow:/ 阻止一切Disallow:/a 阻止路径以 /a 开头的所有 URL,http://example.com/a, http://example.com/abc, http://example.com/a/b.html 等关于html - 谷歌显示 "A description for this result is not available because of this site' s robots.txt“,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42756973/