Posts

Showing posts from 2018

Prepare your AMP page for discovery and distribution: Pairing

To establish that a non-AMP page and an AMP page should be treated as being "paired" together, we add information about the AMP page to the non-AMP page and vice versa, in the form of  <link>  tags in the  <head> . Add the following to the non-AMP page: < link rel = "amphtml" href = "https://www.example.com/url/to/amp/document.html" > And this to the AMP page: < link rel = "canonical" href = "https://www.example.com/url/to/full/document.html" > What if I only have one page? If you only have one page, and that page is an AMP page, you must still add the canonical link to it, which will then simply point to itself: < link rel = "canonical" href = "https://www.example.com/url/to/amp/document.html" >