Hello, we apologize for any inconvenience you are facing. Unfortunately, I couldn’t find any specific details regarding changing the sitemap URL in the provided context. If you have any questions or need assistance with changing the sitemap URL in Rank Math, please feel free to reply here, and a human agent from the Rank Math Support team will assist you promptly. Thank you for reaching out.
Sources:
How to Configure Sitemaps in Rank Math – Best Settings and Tips
Working With the News Sitemap in Rank Math » Rank Math
Hello,
Thank you for your query, and we are so sorry about the trouble this must have caused.
/**
* Filter to change the Sitemap URL Base
*
* @param string $base New URL Base
*/
add_filter( 'rank_math/sitemap/base_url', function( $base ){
return 'insane_sitemap/';
}, 10, 1 );
Here’s how you can add filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
After adding the code flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp
We hope that helps, and please don’t hesitate to get in touch if you have any other questions.
Thank you.
Thanks a lot for your inputs….
Hello,
We are glad to hear that this issue has been resolved. Thank you for letting us know. This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.
We appreciate your patience and cooperation throughout this process.
Thank you for choosing Rank Math.