Yoast canonical URLs are wrong after site migration

The Yoast SEO plugin is our most beloved SEO plugin for WordPress and is used by us, either. Depending on the installed version of the Yoast SEO plugin it may happen that after pushing a staging site to the production site all canonical links generated by Yoast plugin are incorrect or even missing at all.

How to fix Yoast canonical URL’s on your website

Gladly there is an easy fix for that issue:

Install Yoast Test Helper and in the plugin click Reset Indexables tables & Migrations.

This will recreate all canonical URL’s in Yoast internal cache. Finally, clear all other caches on your production website.

Updated on July 12, 2020