Change URL | WordPress.org

[ad_1]

I have successfully changed the main URL thanks to the Override the base URL of the sitemap option. However, when I visit the sub xml files, the URL isn’t overwritten. Is there an easy way to achieve this?

To make my example clearer, the main file (/sitemap.xml) displays the URLs this way, which is what I want :

<sitemap>
<loc>https://www.domain.com/sitemap-misc.xml</loc>
<lastmod>2024-07-09T01:19:50+00:00</lastmod>
</sitemap>

However, when I visit the sitemap in question, I get this :

<url>
<loc>https://www.subdomain.domain.com/</loc>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>

I would like to also change the sitemap-misc.xml, post-sitemap.xml and page-sitemap.xml if possible.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer