【问题标题】:AMP pages not redirecting in my Development site [Non-Wordpress]AMP 页面未在我的开发站点中重定向 [非 Wordpress]
【发布时间】:2020-03-13 05:56:37
【问题描述】:

我为现有页面添加了一个新的 amp 页面。

下面是我原来页面中添加的标记

<link rel="canonical" href="https://staging.example.com/blazor">

<link rel="amphtml" href="https://staging.example.com/blazor/amp">

以下是我的 AMP 页面中添加的标记

<link rel="canonical" href="https://staging.example.com/blazor">

但是当我在移动设备中打开我的开发网站页面(该页面在 robots.txt 文件中排除)时,该页面并未重定向到 AMP 页面。

我是否需要为此行为添加任何重定向代码,或者这是因为我的开发网站页面没有在 google 中编入索引?

我的网站托管在 IIS 中,并使用 ASP.NET MVC Web 应用程序

开发

【问题讨论】:

    标签: c# html asp.net-mvc iis amp-html


    【解决方案1】:

    不会发生自动重定向。您的 AMP 页面在被 GoogleBot 编入索引后几天后就会开始出现在 Google 搜索结果中。

    您可以使用Google AMP Tester 检查所有设置是否正确以及搜索结果中的外观。

    【讨论】:

      猜你喜欢
      • 2017-06-25
      • 1970-01-01
      • 2018-09-03
      • 2019-03-23
      • 1970-01-01
      • 1970-01-01
      • 2023-04-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多