简体   繁体   English

AMP 页面未在我的开发站点中重定向 [非 Wordpress]

[英]AMP pages not redirecting in my Development site [Non-Wordpress]

I have added a new amp page for my existing page.我为现有页面添加了一个新的放大器页面。

Below is the markup added in my original page下面是在我的原始页面中添加的标记

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

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

Below is the markup added in my AMP page下面是在我的 AMP 页面中添加的标记

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

But when i open my development site page (this page is excluded in robots.txt file) in mobile, the page is not redirecting to AMP page.但是,当我在移动设备中打开我的开发网站页面(此页面在robots.txt文件中除外)时,该页面不会重定向到 AMP 页面。

Do i need to add any redirection code for this behaviour or is this because my development site pages are not indexed in google ?我是否需要为此行为添加任何重定向代码,还是因为我的开发网站页面未在 google 中编入索引?

My site is hosted in IIS , and developed using ASP.NET MVC Web Application我的网站托管在IIS 中,并使用ASP.NET MVC Web 应用程序开发

There is no automatic redirection going to happen.不会发生自动重定向。 Your AMP page will start appearing in Google Search results after a few days once it has been indexed by GoogleBot.一旦您的 AMP 页面被 GoogleBot 编入索引,几天后它就会开始出现在 Google 搜索结果中。

You can use the Google AMP Tester to check if everything is set up correctly and what it's going to look like in search result.您可以使用Google AMP 测试器来检查所有设置是否正确以及它在搜索结果中的外观。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM