Product and Page Sitemap not genrating

#1096217
  • Resolved Dhaval Bhalani
    Rank Math free

    The product sitemap (product-sitemap.xml) is not being generated in Rank Math. Only the category sitemap appears in the sitemap index.

    Steps Already Taken:

    ✅ Confirmed WooCommerce plugin is active.

    ✅ Verified there are multiple published products in WooCommerce.

    ✅ Enabled Products Sitemap in Rank Math → Sitemap Settings → Products.

    ✅ Enabled Include in Sitemap in Rank Math → Titles & Meta → Products.

    ✅ Flushed permalinks by going to Settings → Permalinks → Save Changes.

    ✅ Cleared all caches (server cache + plugin cache + CDN if any).

    ✅ Disabled all plugins except WooCommerce & Rank Math → issue still persists.

    ✅ Tested with a default WordPress theme (Twenty Twenty-Five) → still missing.

    Current Behavior:

    https://globalpharmacart.com/sitemap_index.xml only shows category-sitemap.xml.

    https://globalpharmacart.com/product-sitemap.xml returns 404 error.

    Expected Behavior:

    Rank Math should generate product-sitemap.xml and include it in the sitemap index.

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

    We apologize for the issue you are facing with the product sitemap not being generated in Rank Math. Thank you for providing detailed steps you’ve already taken; this helps us understand the situation better.

    Since you’ve confirmed that the WooCommerce plugin is active and there are published products, as well as ensuring that the product sitemap is enabled in Rank Math settings, here are a few additional troubleshooting steps you can try:

    1. Check for Product Visibility: Ensure that the products you want to include in the sitemap are set to be visible in the catalog. Sometimes, products may be set to private or draft status, which would prevent them from appearing in the sitemap.

    2. Review Robots.txt: Make sure that your robots.txt file is not blocking the product sitemap. You can check this by going to Rank Math SEO → General Settings → robots.txt and ensuring there are no rules preventing access to the product sitemap.

    3. Custom Canonicals: If you have set custom canonical URLs for your products, it might prevent them from appearing in the sitemap. Consider removing any custom canonicals and allowing Rank Math to generate them automatically.

    4. Server Configuration: Since you mentioned testing with a default theme and disabling other plugins, it might be worth checking your server configuration or contacting your hosting provider to ensure there are no server-level issues affecting the sitemap generation.

    If after trying these steps the issue persists, we recommend replying to this ticket with your site URL so a human agent from our support team can take a closer look at your specific setup and assist you further.

    Thank you for your patience, and we hope to resolve this issue for you soon!

    I did everything but still why not generating the sitemap?

    Hello,

    In this case, please follow these steps to flush your sitemap cache:

    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. Disable the transient cache for the sitemap by applying this filter. This will make sure that your XML sitemap always reflects the latest changes on your site:

    /** 
     * Filter if XML sitemap transient cache is enabled.
     *
     * @param boolean $unsigned Enable cache or not, defaults to true
     */
    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    If you’re not sure how to add this code, you can follow this guide:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Also, head over to your website files /uploads/rankmath/, and delete any XML files from that path.

    Looking forward to helping you.

    YayMail – WooCommerce Email Customizer

    Thanks, Reinelle.

    It seems to be working, but there’s a conflict with one plugin Conflict Plugin.

    When I disable that plugin, all sitemaps appear correctly with the hook you provided. However, when I enable it again, only this sitemap shows: Sitemap Issue.

    Hello,

    In this case, we suggest contacting the YayMail – WooCommerce Email Customizer plugin developers to inform them about the issue. They might already have a solution for this.

    ​​​​​​Hope this helps, and don’t hesitate to get in touch if you require any further assistance.

    Thank you.

    UPDATE:

    Hello,

    We have seen a similar issue with some other users, and the YayMail team shared a patched update with them that resolved the issue.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Thanks A Lot @Adetayo

    Hello,

    We are glad to know that this issue has been resolved. Thank you for letting us know.

    This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.

    We appreciate your patience and cooperation throughout this process.

    Thank you for choosing Rank Math.

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

The ticket ‘Product and Page Sitemap not genrating’ is closed to new replies.