Sitemap and canonical not working
-
Hi there!
The plugin is not working properly in one of my sites.
We are trying to use a subdomain for a custom post type. The page loads correctly, and all the wp-admin links works as well. But the canonical and sitemaps are still displaying the CPT path, instead of the subdomain.
I have the following mapping in the plugin:
sub.domain.net/wordpress -> domain.net/wordpress/cpt
I’m using Yoast 14.9 and WordPress 5.5. I’ve tested the same setup with Yoast 13.8 and the same problem was happening.
I already tried:
– flushing the permalinks in many ways (deleting in wp_options, saving the permalinks, etc);
– disabled/enabled Yoast sitemaps many times;
– Updated Yoast from 13.8 to 14.9;
– Disabled/enabled Multiple Domain Mapping
– Saved the mapping settings a few times.None of that fixed the problem…
Any ideas?
## One more info
I have this exact same setup working normally in the root of this same domain.
sub.domain.net -> domain.net/cpt
Everything works fine – sitemaps and canonical, also.
The only diference between these two setups, is that one is located in a directory, and the other is in the root domain.
- The topic ‘Sitemap and canonical not working’ is closed to new replies.