How to redirect amp content to normal mode

送分小仙女□ 提交于 2019-12-12 02:45:38

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/41967090/how-to-redirect-amp-content-to-normal-mode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!