Search code snippets, questions, articles...

Distribute AMP Page by adding canonical url

<!--If you have seperate AMP and Non AMP page-->
<!--Add this to non AMP page-->
<link rel="amphtml" href="">

<!--Add this to AMP page-->
<link rel="canonical" href="">

<!--If you have ONLY one page-->
<link rel="canonical" href="">
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool

To distribute your AMP page you need to add a canonical URL to your head tag of the HTML page. It may be possible that you have both AMP and Non AMP versions of the web page. In this case, you need to add different <link> tags to the <head> part of your webpage as shown in the code snippet else you can only add a single link canonical URL to your web page.

Was this helpful?