Hello,
We apologize for the issue you are facing with the sitemap not generating properly. Since you’ve already tried several troubleshooting steps, here are a few additional suggestions that might help:
-
Check for Plugin Conflicts: Sometimes, other plugins can interfere with Rank Math’s functionality. You can use the Health Check plugin to check for conflicts without affecting your live site.
-
Flush Permalinks Again: Although you’ve mentioned resetting permalinks, it can be helpful to do it once more. Go to Settings → Permalinks in your WordPress admin area and click on Save Changes without making any changes.
-
Check .htaccess or Nginx Configuration: If you are using Apache, ensure that your .htaccess
file has the correct rewrite rules for Rank Math. If you are using Nginx, make sure your Nginx configuration includes the necessary rewrite rules as well. Here’s a reference for the rewrite rules:
- For Apache:
# START of Rank Math Sitemap Rewrite Rules
RewriteEngine On
RewriteBase /
RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]
# END of Rank Math Sitemap Rewrite Rules
- For Nginx:
# 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;
rewrite ^/([a-z]+)?-sitemap.xsl$ /index.php?xsl=$1 last;
# END Nginx Rewrites for Rank Math Sitemaps
-
Check File Permissions: Ensure that the permissions for the /public_html/
directory allow for the creation of files. The typical permission setting is 755 for directories and 644 for files.
-
Enable Debugging: If none of the above works, you might want to enable debugging in WordPress to see if any errors are being logged that could provide more insight into the issue. You can do this by adding the following lines to your wp-config.php
file:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
After enabling this, check the wp-content/debug.log
file for any errors related to Rank Math.
If these steps do not resolve the issue, please reply to this ticket with your site URL so we can assist you further. A human agent from our support team will take over and provide more specific guidance.
Thank you for raising this concern!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Hello,
Thanks for contacting us, and sorry for any inconvenience this might have caused you.
Please share your sitemap URL so that we can check. Note that the sitemaps generated by Rank Math are dynamic, which means no physical file has been created in your website’s directory.
Meanwhile, assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.
To determine that, please follow this troubleshooting guide:
https://rankmath.com/kb/check-plugin-conflicts/
Here is a video you can follow as well:
https://www.youtube.com/watch?v=FcIWRhcUP2c
Only the site admin would know and your users won’t be affected by this troubleshooting.
Let us know how it goes. We look forward to hearing from you.
Hello,
Here is my sitemap URL:
👉 https://keepthisrecipe.com/sitemap_index.xml
However, when I try to open it, I get a “Page Not Found” error.
I have already:
Enabled the sitemap in Rank Math
Cleared cache
Checked with my hosting provider (Cloudways), and they confirmed there is no server issue
Disabled all plugins except Rank Math and tested again
Switched to a default WordPress theme and tested again
The issue still persists.
Could you please check and let me know what else I can do?
Thank you!
Hello,
We might need to take a closer look at the settings. 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,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
Right now, you don’t have any posts and pages on your website so there is nothing to add to the sitemap and that’s why it is returning a 404 error.
Once you add the content to your website, the sitemap will start working.
Hope that helps and please don’t hesitate to let us know if you have any other questions.
Thank you.
Hello,
We are glad we could address your concern.
Please feel free to create a new forum topic if you do have another question in the future.
It will be our pleasure to assist you again.
Thank you.