如何将放大器的内容重定向到普通模式 [英] How to redirect amp content to normal mode

查看:93
本文介绍了如何将放大器的内容重定向到普通模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里是个新手,这是我的第一个问题,最近我在我的站点中启用了amp选项,出于某种原因我想禁用它.我是通过amp插件完成此操作的,当我停用该插件时,我的所有amp内容均显示404错误,而我的所有内容都没有被索引为amp内容,如果我停用该插件,我的amp内容则显示404页面错误,是他们以任何方式将我的放大器内容重定向到正常模式,例如; mysite.com/how-to-design/amp,它将以正常模式重定向到mysite.com/how-to-design ...请在这里帮助我.提前致谢.

I am totally new here, this is my first question here, recently I have enabled amp option in my site, for some reason I want to disable it. I did this by amp plugin, when I deactivated the plugin all my amp contents ar showing 404 error, one more thing all my contents aren't indexed as amp content, If I deactivate the plugin my amp contents are showing 404 page error, is their any way to redirect my amp contents to normal mode like; mysite.com/how-to-design/amp and this will redirect to mysite.com/how-to-design in normal mode...please help me here. thanks in advance.

推荐答案

在AMP页面顶部添加以下行:

Add below line in head section of your AMP page:

<link rel="canonical" href="/path-of-your-non-amp-page" />

src: https://www.ampproject.org/docs/guides/discovery

这篇关于如何将放大器的内容重定向到普通模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆