top of page
  • Writer's pictureBrent Payne

AMP Page URL has canonical URL which is Error (5XX)

The AMP Page URL in question includes a canonical link element that points to a URL returning an Error (5XX).

Why is this important?

It's essential for AMP HTML pages to reference a canonical page, either towards a non-AMP version or itself if there's no alternative. A canonical directed to a 5XX Error URL prevents search engines from reaching the original page, undermining the validity and discoverability of AMP pages, and sending search engines confusing signals, which can negatively affect the appearance of the AMP page in search results.

What does the Optimization check?

This check will be flagged if an AMP URL's canonical tag points to a URL that yields an Error (5XX) when accessed.

Examples that trigger this Optimization

This check would be activated if the AMP URL contains a canonical link to:

<!doctype html><html amp>  <head>    <meta charset="utf-8">    <title>Example Document</title>    <link rel="canonical" href="" />    ...  </head>  ...</html>

and the referenced canonical URL provides a 500 (Internal Server Error) response:

HTTP/... 500 Internal Server Error...

URLs triggering other server error statuses will also activate this Optimization, thus any 5XX series response is included.

How do you resolve this issue?

Marked as 'Critical', this issue can significantly hinder site traffic from organic searches and needs urgent attention. If the problem is the server, you'll have to diagnose server issues potentially with a developer or server admin to identify and resolve the root cause. If the canonical link is incorrect, correct the AMP page's canonical to point to the right non-AMP version, which itself should correctly point back as self-referential.

Consider a non-AMP URL like that defines both self-reference canonical and an AMP page link as follows:

The corresponding AMP page should then have a canonical pointing back to

<link rel="canonical" href="" />


Recent Posts

See All

ClubReq Gets A Link (Because They Asked)

I am a mentor for Techstars and have been for over 10 years. In those ten years I have mentioned to startups to ask ANYONE and everyone that they meet to link to their site. Yet, in all those times on


bottom of page