Sitemap problems

#706746
  • Resolved Kyle A Duncan
    Rank Math free

    Good morning

    I have removed some of my content on WordPress and several of the URLs are still showing up in my sitemap.

    Thanks,
    Kyle

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

    We’re sorry to hear that you’re experiencing issues with your sitemap. If you’ve removed some content from your WordPress website and those URLs are still showing up in your sitemap, there are a few things you can do to resolve this.

    First, ensure that you have submitted the correct XML sitemap to Google. You should submit the sitemap available on your website at `https://premium.wpmudev.org/blog/w3-total-cache-settings/#uaGroups?utm_campaign=RankMath

    If you’re sure you’ve submitted the correct URL but are still facing this error, check for a plugin conflict using the Health Check plugin. This will help you determine if another plugin is causing the issue.

    Additionally, if you’re running W3 Total Cache along with Rank Math on your website, create another user agent group and add the ‘googlebot’ user agent to it.

    If none of these solutions help resolve the issue, you can include the following filter in your theme’s functions.php or rank-math.php file:

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

    If you’re still facing issues after trying these steps, please feel free to reach out to our support team for further assistance. We are available 24×7 and will be happy to help you out as soon as possible.

    Thank you for bringing this to our attention!

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    Remove Blank Lines From Sitemaps » Rank Math
    How to Fix “Incorrect HTTP Header Content-Type” Error in Sitemaps » Rank Math
    Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math

    Kyle A Duncan
    Rank Math free

    I don’t know how to add anything to the rank math PHP file.

    Hello,

    Thanks for contacting us, and sorry for any inconvenience this might have caused you.

    Can you please share the sitemap URL and some of the deleted URLs so we can check further for you?

    The most possible reason can be that your sitemap is heavily cached. Please follow the steps below to 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 code to your site.

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

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

    If the issue persists, please follow the guideline to check if any of your plugin/themes is conflicting with Rank Math: https://rankmath.com/kb/check-plugin-conflicts/

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

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Sitemap problems’ is closed to new replies.