In Google Search Console, I found that everything-is-an-experiment.com
is not indexed. I found the root cause of is the following, which shows a wrong site.
<link rel="canonical" href="<https://wrong.com/>" class="yoast-seo-meta-tag" />
The <link>
is added by Yoast SEO plugin in WordPress.
I tried a few ways to fix it; but none of them work. The things I tried are:
- Uninstall Yoast SEO and then install again
- Try finding Canonical URL in “Pages” for the homepage; but there is no “Home” page for my template.
- Use “Better Search Replace” plugin to replace wrong domain name with the right one. This failed because the plugin failed to run.
In the end, I found that “Uninstall Yoast SEO and then install again” didn’t work because uninstalling Yoast SEO plugin does not remove all its databases. So, when you install it back, it will keep using the old data. To fix, do the following:
- Uninstall Yoast SEO plugin
- Go to PHPMyAdmin, delete all tables starts with
wp_yoast_
. - Install Yoast SEO plugin