URL (new posts) not ncluded in the Sitemap

#1093506
  • Resolved Vistasys AG
    Rank Math free

    Dear Rank Math Support Team,

    I am writing to report a persistent issue with the sitemap functionality. Despite following all recommended troubleshooting steps, the URLs of my newly published posts are not being included in the sitemap (sitemap_index.xml).

    I have carefully followed the instructions in your knowledge base article (https://rankmath.com/kb/url-not-in-sitemap/) and have already completed the following steps:

    Cleared all Caches: Emptied both my server-level cache (e.g., WP Rocket) and my browser cache.

    Checked Sitemap Settings: Verified that “Posts” are enabled within the Rank Math Sitemap settings.

    Confirmed Post Status: The affected posts are published and are not set to “Draft” or “Pending Review.”

    Robots Meta Check: Ensured the posts are not set to noindex either individually or through a global setting.

    Republished Posts: Updated and republished the posts to trigger a re-index.

    Unfortunately, none of these actions have resolved the problem. The new post URLs continue to be absent from the sitemap.

    Could you please advise on what further steps I can take? Are there other settings, potential plugin conflicts, or server logs I should investigate?

    best regards
    reto

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

    We apologize for the issue you are facing with the URLs of your newly published posts not being included in the sitemap. Thank you for providing detailed information about the troubleshooting steps you’ve already taken.

    Here are a few additional steps you can consider:

    1. Validate Your Sitemap: Use the Validate XML Sitemap tool to check if your sitemap is correctly configured. This can help identify any issues that might be preventing the new posts from appearing.
      An example displaying how to validate a sitemap

    2. Check for Plugin Conflicts: Sometimes, other plugins can interfere with Rank Math’s functionality. You can use the Health Check plugin to troubleshoot potential conflicts without affecting your live site.

    3. Ensure Posts Are Set to Index: Double-check that your posts are set to index. Go to Rank Math SEO → Titles & Meta and ensure that the Index checkbox is enabled for your posts.
      Index Titles and Meta settings

    4. Sitemap Location: Ensure that your sitemap is located in the root folder of your WordPress installation. The correct URL should look like this: https://yourdomainname.com/sitemap_index.xml.

    5. Check Robots.txt File: Make sure there are no rules in your robots.txt file that might be blocking access to your sitemap or specific post types.

    If you’ve tried all these steps and the issue persists, please 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 patience, and we look forward to resolving this issue for you!

    Vistasys AG
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    In this case, please 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.

    Vistasys AG
    Rank Math free

    Hello!

    Thank you for your feedback.

    Yes, I have implemented the code snippet to disable the transient cache and deleted all XML files from the /uploads/rankmath/ directory.

    Everything now seems to be functioning perfectly, and the sitemap updates immediately. Thank you for the excellent and very effective support!

    Best regards

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on
    https://www.trustpilot.com/evaluate/www.rankmath.com

    about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

You must be logged in to reply to this ticket.