Hello,
Thank you for contacting Rank Math and bringing your concern to our attention.
Sorry to disappoint you, but it is not possible to rename the Sitemaps generated by Rank Math.
However, if you want, then you can change the base of the sitemap URL using the following filter in your active themeās functions.php file:
https://rankmath.com/kb/filters-hooks-api-developer/#change-sitemap-base
You can set it up like this:
add_filter( 'rank_math/sitemap/base_url', function( $base ){
return 'custjsas/';
}, 10, 1 );
And your sitemap URL will be https://sitename.com/custjsas/sitemap_index.xml
I hope that helps.
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
I’ve added the code to my theme function but the custom sitemap url is showing blank.
Hello,
Can you please follow these steps?
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp
2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/
If this hasnāt fixed the issue, please run a conflict test: https://rankmath.com/kb/check-plugin-conflicts/
If thereās no conflict with any plugin/theme, then please get back to us with the affected URL, so that we can troubleshoot further.
Thank you
Thank you so much. Now It’s worked after flushing the sitemap.
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.