Yoast robots.txt in multisite mixes sitemaps across sites
-
Hello Yoast team,
I’ve just discovered a critical issue with how Yoast generates robots.txt files in WordPress multisite installations.In a multisite setup, Yoast appears to generate a single robots.txt that includes sitemap URLs from multiple sites in the network.
As a result, each individual site ends up declaring sitemaps that belong to other sites, even when they are on different domains and completely unrelated.
This is extremely problematic from an SEO and Search Console perspective, and it should not happen by default. Robots.txt and sitemap declarations are site-level signals and should not be mixed across sites.
This is quite disappointing to find, and I would expect Yoast to prevent this behavior or at least make it very explicit.
I need to fix this urgently. What is the correct and recommended way to stop Yoast from injecting other sites’ sitemaps into each site’s robots.txt in a multisite environment?
Thanks
You must be logged in to reply to this topic.