Free Webinar: Website Migrations & Redirect Mapping Dos & Don’ts Sign up now!

Dealing with Indexability issues?

Crawl your website with Sitebulb for 300+ tech SEO checks

Try for Free
Low This Hint is of the lowest significance, and should only be addressed if there are not more serious issues which have not been handled. Potential Issue This Hint is unlikely to be affecting the site at the moment, but should be investigated as it could cause issues in the future.

Canonical tag in HTML and HTTP header

This means that the URL in question has a canonical element specified both in the HTML and in the HTTP header.

Why is this important?

It is considered best practice to only specify canonicals using a single method on any given URL. This is because using both methods makes the configuration more open to human error.

Imagine you implement a canonical on Page A which points to Page B as the canonical URL, using BOTH a tag in the <head> and in the HTTP header. Some time passes, and you introduce a new page, Page C, which will also become the new canonical for Page A. You change the canonical in the <head> but completely forget about the existence of the canonical in the HTTP header, and so do not change it.

The net result would be mismatched canonicals, which would cause search engines to ignore the canonical instruction entirely (which would then trigger the Hint: Mismatched canonical tag in HTML and HTTP header).

You can avoid such catastrophic futures by only using a single method for defining canonicals.

What does the Hint check?

This Hint will trigger for any internal URL which contains a canonical link element both in the HTML and in the HTTP header, even if the canonical URLs are the same.

Examples that trigger this Hint:

Consider the URL: https://example.com/page-a

The Hint would trigger for this URL if it had canonicals in both locations pointing to the same URL;

Canonical link in the <head> to a URL

<link rel="canonical" href="https://example.com/page-b" />

AND HTTP Header canonical link to the same URL

HTTP/... 200 OK

...
Link: <https://example.com/page-b>; rel="canonical"

The Hint would also trigger for this URL if it had canonicals in both locations pointing to different URLs;

Canonical link in the <head> to a URL

<link rel="canonical" href="https://example.com/page-b" />

AND HTTP Header canonical link to the different URL

HTTP/... 200 OK

...
Link: <https://example.com/page-c>; rel="canonical"

Why is this Hint marked 'Potential Issue'?

This Hint is a 'Potential Issue', which means that it is unlikely to be affecting the site at the moment, but should be investigated as it could cause issues in the future.

To resolve future issues, simply select one method of defining canonicals, and only use that method. You may need to seek developer input to determine which method is easier to manage for each specific website.

Sitebulb Desktop

Find, fix and communicate technical issues with easy visuals, in-depth insights, & prioritized recommendations across 300+ SEO issues.

  • Ideal for SEO professionals, consultants & marketing agencies.

Sitebulb Cloud

Get all the capability of Sitebulb Desktop, accessible via your web browser. Crawl at scale without project, crawl credit, or machine limits.

  • Perfect for collaboration, remote teams & extreme scale.