Fix canonicals pointing to the old domain, to staging, to non-indexable URLs or to inconsistent variants after a migration. The priority is to restore a situation under control without wiping the traces useful to the diagnosis.

How do I recognise canonical errors after a migration?
After a redesign or a migration, the check has to compare the old and the new site URL by URL: HTTP status, canonical, robots, content, internal links, sitemap and redirects. The costliest errors are often systematic, and so can be spotted quickly. Start by noting when it appeared, the most recent changes, the URLs concerned and the behaviour observed.
Compare the old and the new structure: the list of URLs indexed before the redesign, each one's current HTTP status, and where the redirects lead. Note the launch date, because it is your marker in Search Console.
Google selecting a different canonical
A tag pointing at the old domain
Valid pages left unindexed as duplicates
One signal alone does not prove the cause: “Google selecting a different canonical” can come from “The domain hard-coded in the theme” just as easily as from “A database search-and-replace left half done”. Look for at least two findings that agree before you apply a lasting fix.
The canonical you declare and the one Google chooses
The link rel="canonical" tag is a hint, not a directive. The Search Console URL inspection tool shows the canonical the page declares and the one Google selected. A difference after a migration often points to contradictory signals: a canonical to the old domain, to the http version, to a staging URL or to a redirected URL.
SEO plugins generally build the canonical from the site address configured in WordPress. If that address was the staging one when the site went live, every page can declare the wrong canonical.
Lining every signal up on the same URL
A reliable canonical points at a URL that answers 200, can be indexed, is in the sitemap and is the one your internal links use. If the canonical, the sitemap, the internal links and the redirects do not all name the same version, Google decides for itself — not always the way you wanted.
Check every canonical with a crawler: self-referencing on the main pages, no canonical pointing at a noindexed page, no canonical pointing at a different page in a paginated series. Pages in a series should generally point at themselves, not at page one.
Causes to check
For canonical errors after a migration, the 4 causes below are ranked from the commonest to the rarest. Test the one matching the site’s most recent change first, one at a time.
The domain hard-coded in the theme
A database search-and-replace left half done
A canonical generated without a consistent protocol or trailing slash
Filters and pagination wrongly consolidated
The export of the old site's URLs, the redirect plan, the sitemaps, the indexing report and a crawl of the new site quickly show where the continuity broke.
A good fix does not merely make the symptom disappear. It explains why the problem appeared and how to check that it does not come back.
Precautions before starting
Keep the full export of the old URLs, their tags and their inbound links before fixing anything. Without that list, rebuilding the missing redirects gets hard.
Back up the .htaccess file, or your current redirect configuration, too: one rule in the wrong place can break the whole site.
Check the real canonical on a migrated page
Enter the URL on the new domain: we fetch the canonical tag, the HTTP status and any redirects directly.
The check queries this address directly from our servers. No data is kept.
Found an inconsistent canonical on several pages?
Have the migration auditedDiagnosis and fix
| Phase | Objective | A mistake to avoid |
|---|---|---|
| Observe | Reproduce it and gather the evidence | Changing several settings before you have a baseline |
| Isolate | Confirm the component or the rule responsible | Deleting files without keeping a copy |
| Fix | Apply the smallest documented change | Restoring a version that still contains the same cause |
| Validate | Test the whole journey and monitor it | Concluding from the home page loading alone |
How do I resolve the problem?
The 4 steps below tackle canonical errors after a migration from the least intrusive to the heaviest. After each change, repeat the same test; if nothing changes, go back to the previous state before moving on to the next step.
- 01
Step 1
Extract the HTML canonical and the header on every URL.
- 02
Step 2
Check every destination answers 200 and can still be indexed.
- 03
Step 3
Fix how it is generated in the template rather than page by page.
- 04
Step 4
Line the sitemap, the internal links, the redirects and the canonical up with each other.
If a step changes the database or the code directly, do it on a copy first. Once the fix is in place, the first check is still this: check that unique pages reference themselves.
Validate the resolution
Test a broad sample of old URLs: each should answer 200, or redirect in a single hop to the equivalent page. Check the canonical, the robots tag and the sitemap on the destination pages too.
Validation checks
Follow the indexing report and the migrated pages' traffic for several weeks: Google swaps the old URLs for the new ones gradually.
Prevent a recurrence
Prevention has to answer the cause you identified. For canonical errors after a migration, the first measure is “Test the configured domains”; note too the signal that would have shown the incident sooner, and who is responsible for watching for it.
Test the configured domains
Validate the URL patterns
Crawl before the switch-over
Add an automated test on the canonicals
For the next redesign, prepare the redirect table before launch and run a verification crawl on the day.
Frequently asked questions about canonical errors after a migration
Why does Google choose a different canonical from mine?
The canonical tag is a hint. If the sitemap, the internal links or the redirects point at another URL, or if the pages are very alike, Google can settle on a different version.
Is a canonical pointing at staging serious?
Yes, it asks Google to treat a test URL as the reference version. Fix the site address in WordPress and check the SEO plugin's settings.
Should paginated pages point at page one?
Generally no: each page of the series should declare its own URL as canonical, otherwise the content on the later pages may never be crawled.
How do you check the fix will hold?
Check unique pages are self-referencing. Check the protocol, the host, the trailing slash and the parameters. Compare the canonical you declared with the one selected. Then watch the logs, the alerts and the relevant metrics for several days.
How to resolve it
If canonical errors after a migration persists after these steps, we can pick the diagnosis up again from your logs and your access details, without acting blind on the site.
Get a diagnosisSummary with an AI
Choose your assistant: the request is prefilled where that is possible, and always copied, ready to paste if need be.

































🍪