Google AMP canonical URL

Because an AMP page duplicates the content of the normal Sitefinity CMS page, the AMP HTML must contain a canonical tag that specifies the URL of the original page. This way, you avoid search ranking distribution.

By default, to determine original page URL for the canonical tag, the AMP page relies on Sitefinity CMS Canonical URLs implementation.
For more information, see Locations of content items: Canonical URLs.

When you want to use a specific page as the original page for your content or you have modified the original page’s URL, for example, by URL rewrite rules, you can use custom canonical URLs for your AMP pages. 

Limitations

The URLs of videos served in AMP pages are restricted to only HTTPS protocol. If HTTP video source is selected, Sitefinity CMS will automatically rewrite the protocol to HTTPS and, if the video is not available under HTTPS, it will not be served in the AMP page.
For more information, see amp-video.

To configure custom canonical URLs for AMP pages, perform the following:

  1. Navigate to Administration » Settings » Global settings » Mobile formats.
  2. Click the desired content type.
    For example, click Blog posts.
  3. Expand the Advanced section.
  4. In Canonical URL dropdown box, select Custom canonical URL.
  5. Enter the desired URL.
    You can also access the content item’s properties using the following formats:
    [<property name>] and [<property name>, {<format>}] 

    EXAMPLE: Enter
    /blogs/[Parent.UrlName]/[PublicationDate, {0:yyyy'/'MM'/'dd}]/[UrlName]


Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?