Sitemaps problems

#1100411
  • Pulsar Studio
    Rank Math free

    Hello Rank Math team,

    I am experiencing an issue with sitemap generation on my website.

    In the sitemap index, not all generated sitemaps are being listed. Specifically, the posts, pages and some cpts sitemaps are missing, while the blog categories and local-sitemap are showing correctly.

    Additionally, one of the sitemaps that is configured to be generated is returning a 404 error, even though it is properly enabled in the settings.

    We have already reviewed possible causes on our side, such as PHP limitations, PHP version, and plugin compatibility (by deactivating them for testing purposes), but the issue persists.

    Could you please advise me on how to fix this issue or confirm if it’s a bug in the current version of the plugin?

    Thank you in advance for your support.

    Best regards,

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

    We apologize for the issues you are facing with sitemap generation on your website. Thank you for providing detailed information about the problems.

    Missing Sitemaps in the Index

    For the issue where not all generated sitemaps are listed in the sitemap index, please check the following:

    1. Sitemap Settings: Ensure that all post types and taxonomies you want to include are enabled in the Rank Math settings. You can do this by navigating to Rank Math SEO → Sitemap Settings and checking the options for each type of post/taxonomy.
    2. Custom Canonicals: If you have set custom canonicals for any posts, those posts will not appear in the sitemap. Consider removing custom canonicals to allow Rank Math to generate them correctly.
    3. Flush Permalinks: Sometimes, flushing permalinks can resolve issues with sitemap generation. Go to Settings → Permalinks in your WordPress admin area and click “Save Changes” without making any changes.

    404 Error on Sitemap

    For the sitemap that is returning a 404 error:

    1. Check Rewrite Rules: If you are using an Apache server, ensure that your .htaccess file has the correct rewrite rules for Rank Math sitemaps. If you are using Nginx, make sure your Nginx configuration file has the appropriate rewrite rules as well. You can refer to our documentation for more details on Apache and Nginx configurations.
    2. Server Configuration: If the above steps do not resolve the issue, it may be worth checking with your hosting provider to ensure there are no server-level restrictions affecting sitemap generation.

    If you have tried all these steps and the issue persists, it may be beneficial to reply to this ticket with your site URL so that a human agent from our support team can assist you further.

    Thank you for your understanding, and we look forward to helping you resolve this issue!

    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.

    Pulsar Studio
    Rank Math free

    We have already reviewed and tested all the steps mentioned:

      Verified sitemap settings and ensured that all post types and taxonomies are correctly enabled.

      Checked for custom canonicals in CPTs, and there are none preventing sitemap generation.

      Flushed permalinks by saving them again in the WordPress settings.

      Deleted the .htaccess file so that WordPress could regenerate it automatically, but the issue persists.

    Hello,

    Thank you for contacting us. We apologize for any inconvenience that may have been caused.

    Please try to follow the steps below and see if that works for you.

    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/

    3. If the above steps don’t seem to work, kindly apply the following filter to your site.

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    

    Here’s how you can add a filter/hook to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Once done, clear your website cache and check the sitemap again.

    Let us know how it goes. We look forward to hearing from you.

    Thank you.

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

You must be logged in to reply to this ticket.