I’m having the same problem, (endlessly loading of the sitemap_index.xml page or 404 error) but now i found out that when i’m not logged in as admin (other computer) it works fine
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
Could you please clear your cache and do the following:
1. Head over to WordPress Dashboard > Settings > Permalinks
Hit the save button once.
2. Go to WordPress Dashboard > Rank Math > Sitemap Settings
Hit the save button once.
That should fix the issue.
If it doesn’t, please do let us know so we can look at this further.
It would also be recommended to exclude your sitemaps from caching to avoid such an issue in future.
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.