html

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="https://www.domain.com/url/to/amp/page.html">

<!--Add this to AMP page-->
<link rel="canonical" href="https://www.domain.com/url/to/full/page.html">

<!--If you have ONLY one page-->
<link rel="canonical" href="https://www.domain.com/url/to/amp/page.html">

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?