html - 谷歌显示 "A description for this result is not available because of this site' s robots.txt“

标签 html wordpress seo wordpress-theming meta-tags

我创建了一个 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/

相关文章:

java - 我想从数据库检索图像并使用 <img> 标记在 JSP 中显示它。我正在使用我的sql

html - 如何使div显示灵活

html - 单击链接时在新选项卡上运行音频-HTML

mysql - Wordpress SQL 与类别添加

javascript - 单页 HTML 站点 - SEO 技术

php - .htaccess 文件,路径正确重定向,但未加载图像和 css

javascript - 如何防止在 html 中使用 javascript 单击 Enter 键时移动到下一页?

html - 双击时更改文本颜色

javascript - WordPress 中的屏幕选项不适用于新的自定义元框

c# - 如何获取规范链接 href 的 RawUrl 减去 QueryString?