Skip to content
warningcanonical-host-mismatch

Canonical or hreflang points to a different host

The canonical or hreflang links use a different host or protocol than the one the page is served on, such as www versus non-www.

What it means

The page is served at, say, https://www.example.com/page, but its canonical (or an hreflang alternate) points to https://example.com/page, or to http://. Typically a CMS setting holds a different base URL than the site actually uses.

Why it matters

Search engines see the served URL and the canonical disagreeing on every page. If the canonical host itself redirects, the canonicals point at redirects — and Google may disregard them site-wide.

How to fix

  • Decide which host is the real one (www or not, always https).
  • Set that as the site URL in your CMS or framework so canonical and hreflang tags use it.
  • Redirect the other host to it permanently (301).

More indexability checks