【问题标题】:How I can allow google request in my web page如何在我的网页中允许 google 请求
【发布时间】:2016-02-01 15:07:27
【问题描述】:

我允许在我的网页上显示一些特定页面。如何允许 google 请求获取我的页面信息

<body itemscope itemtype="http://schema.org/Product">
<h1 itemprop="name">Shiny Trinket</h1>
<img itemprop="image" src="{image-url}" />
<p itemprop="description">Shiny trinkets are shiny.</p>
</body>

这是我的页面。但我只允许那些人看到我登录的页面。

当我想从谷歌分享时,它会呈现我的页面,并且由于登录权限,它的请求会移动到登录页面。

如何允许 google 请求在不登录的情况下获取我的页面。

【问题讨论】:

    标签: php laravel google-search


    【解决方案1】:

    我想我在某处读到可以将登录名和密码传递给谷歌索引机器人。试试Google WEBMASTERING

    我不确定?!

    https://codereview.stackexchange.com/questions/85892/allowing-googlebot-to-crawl-a-password-protected-page

    【讨论】:

    • 你的情况如何?
    【解决方案2】:

    试试

    @can('your_role')
    <h1 itemprop="name">Shiny Trinket</h1>
    <img itemprop="image" src="{image-url}" />
    <p itemprop="description">Shiny trinkets are shiny.</p>
    @endcan
    

    【讨论】:

      猜你喜欢
      • 2013-02-17
      • 2016-04-06
      • 2019-09-21
      • 2023-04-02
      • 2015-05-22
      • 2011-10-13
      • 1970-01-01
      • 2017-09-07
      • 2015-10-11
      相关资源
      最近更新 更多