Rankmath not generating Sitemap.xml

#1099677
  • Hello everyone,
    I’m facing an issue with Rank Math on my WordPress site. The sitemap is not generating at all, and when I try to access the sitemap URL, it shows a 404 error page. I’ve double-checked the Rank Math sitemap settings, and everything seems to be enabled correctly. I also tried flushing the permalinks and clearing cache, but the problem persists.

    Has anyone experienced this before? What could be causing Rank Math to not generate the sitemap properly and show a 404 error? Any help or troubleshooting tips would be appreciated!

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    We apologize for the issue you are facing with Rank Math not generating the sitemap and showing a 404 error. Since you’ve already tried flushing the permalinks and clearing the cache, here are a few additional troubleshooting steps you can take:

    1. Check for Plugin Conflicts: Sometimes, other plugins can interfere with Rank Math’s functionality. You can use the Health Check plugin to identify any conflicts.

    2. Verify Sitemap Settings: Ensure that all necessary post types and taxonomies are enabled in the Rank Math Sitemap settings. You can check this by going to Rank Math SEO → Sitemap Settings.

    3. Check .htaccess or Server Configuration: If you are using an Apache server, ensure that your .htaccess file is correctly configured. For Nginx, check your server configuration to ensure it allows access to the sitemap.

    4. Disable Caching Plugins: If you are using caching plugins, try disabling them temporarily to see if that resolves the issue.

    5. Check for Custom Canonicals: If you have set custom canonical URLs for your posts, they may not appear in the sitemap. Consider removing them to see if that helps.

    If these steps do not resolve the issue, please reply to this ticket with any error messages you might be seeing or any additional details about your setup. A human agent from our support team will take over and assist you further.

    Thank you for raising this concern!

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    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/

    That should fix the issue.

    Please let us know if that does not. We are here to assist.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this ticket.