【问题标题】:React prerender.io fetch as google is not workingReact prerender.io fetch 因为谷歌不工作
【发布时间】:2017-06-10 03:14:07
【问题描述】:

我正在为ExpressJS 应用程序使用预渲染。我将<meta name="fragment" content="!"> 保留在index.html 页面中。当我使用mywebsite.com/?_escape_fragment_= 时它工作正常,但是当我使用 fetch 作为 google 来获取mywebsite.com/ 时,我看不到任何数据。但是对于带有?_escape_fragment_= 的丑陋格式,它的工作原理就像魅力一样。

当 mywebsite.com 被编入索引时,Googlebot 是否会将其抓取为 mywebsite.com/?_escape_fragment_=,或者我需要为此做些什么?

【问题讨论】:

    标签: reactjs express seo google-search-console prerender


    【解决方案1】:

    Fetch as Google 存在一个已知问题,即它不会自动检查片段元标记。如果您在 Fetch as Google 中的 URL 末尾输入 ?_escaped_fragment_=,它应该可以正确看到预呈现的页面。

    真正的 Googlebot 没有那个 bug,它们会看到片段元标记,并自行成功抓取 ?_escaped_fragment_= 网址。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-06-08
    • 1970-01-01
    • 2015-05-25
    • 2018-11-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-05
    相关资源
    最近更新 更多