XML Sitemap - override base UR

XML Sitemap - override base URL

We are using Cloudflare for loadbalancing and geo-specific VPS usage (Cloned sites on US, AUS servers)
Rankmath is the SEO Plugin we use and I cannot find a way to overwrite the base URL. Hence:
Live URL is www.example.com
WP 1 is aus.example.com
WP 2 is eu.example.com
Both of the WP installation have to use www.example.com for the sitemap.How are Cloudflare users usually solve this issue?

In the sitemap itself? It’d probably require a Worker to do a search/replace depending on the hostname.

You might also try something on the server that generates geo-specific sitemaps, like sitemap_eu.xml and then use a transform rule:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.