Hello,
Thank you for contacting Rank Math and bringing your concern to our attention.
The sitemap by Rank Math usually generates dynamically and uses the domain where you setup the WordPress CMS.
So, if you’ve WordPress installed on https://subdomain.yourdomain.com, your sitemap should automatically be generated on your subdomain. The address should be look like https://subdomain.domain.com/sitemap_index.xml.
Apart from that need to add slug separate slug for every post type.
Can you please confirm if you want to change the slug before they gets included in the sitemap? If so, then yes, it’s possible to change the slug of a post/page before they get attached to the sitemap.
Here’s a filter below that you can follow to do that:
https://rankmath.com/kb/filters-hooks-api-developer/#filter-sitemap-item
Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.
Thank you.
Hello Team,
Thanks for your reply the above issues were resolved using a hook.
But now face another issue with 404 sitemaps not being found.
Here is main sitemap url – https://gharstage.prodevtest.com/sitemap_index.xml
The below sitemaps showing 404
https://gharstage.prodevtest.com/infographics-sitemap.xml
https://gharstage.prodevtest.com/careers-sitemap.xml
Hello,
I checked your sitemap and it seems both of the child sitemap is loading perfectly fine. Here are the screenshots for your reference:


Hope that helps.
Thank you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.