Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
The rewrite should be added if your sitemap is not working. Are you getting any issues on your sitemap with the URL /sitemap_index.xml?
If it’s working fine with that URL, you won’t be needing to add the rewrite to your configuration.
I hope that helps.
Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.
Hello Reinelle,
Thank you for replying.
I’m sorry I forgot to mention that URL /sitemap_index.xml returns a 404 page, that’s why we contacted our hosting provider in the first place as was suggested on the plugin settings page.
Can you help us with that?
Hello,
If your Nginx server is preventing the creation of the sitemap file please try and add the rewrite rules that you mentioned in the first message to your Nginx config file to fix this:
# START Nginx Rewrites for Rank Math Sitemaps
rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
# END Nginx Rewrites for Rank Math Sitemaps
If adding this rewrite doesn’t resolve your issue, please feel free to contact us again. We are here to assist. Thank you.
Hi,
As I’ve mentioned erlier our_domain.com?sitemap=1 shows us a white page, so adding this rewrite won’t fix our problem. Maybe you can suggest something else?
Hello,
The first thing you need to do is determine whether you have a blank page or a white page. It sounds all the same but there is a difference. Check the source code of the blank/white page.
If the source code of the sitemap page is empty, there must be a conflict with another plugin or the theme. You can use the Health Check plugin to determine which plugin or theme is causing this. Another scenario is that you have a static file with the same name as your sitemap file (sitemap_index.xml). You should FTP into your server and remove the file.
If that doesn’t fix the issue then please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.

It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping 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.