i have problem in the sitemap

#876811
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello, we apologize for the issue you are facing with your sitemap. Here are some steps you can take to troubleshoot the "Sitemap could not be read" and "Couldn’t fetch" errors in Google Search Console:

    1. Validate Your Sitemap

    First, ensure that your sitemap is correctly configured. You can validate your sitemap using the Validate XML Sitemap tool. Enter your sitemap URL and click VALIDATE SITEMAP. If it’s correctly configured, you should see a success message.

    An example displaying how to validate a sitemap

    2. Check Sitemap Location

    Make sure your sitemap is located in the root folder of your WordPress installation. The URL should look like this:

    http://www.sitemaps.org/schemas/sitemap/0.9

    3. Ensure Posts Are Set to Index

    If all your posts are set to noindex, your sitemap will be empty. Go to Rank Math SEO → Titles & Meta and ensure that the Index checkbox is enabled for your posts.

    Index Titles and Meta settings

    4. Flush Permalinks

    Sometimes, flushing permalinks can resolve access issues. Go to the Permalinks page in your WordPress dashboard and click Save Changes even if you didn’t make any changes.

    5. Check for Plugin Conflicts

    If the above steps do not resolve the issue, there may be a plugin conflict. You can use the Health Check plugin to identify any conflicts.

    6. Review robots.txt File

    Ensure that your sitemap URL is not blocked by any rules in your robots.txt file. You can check this in Rank Math SEO → General Settings → robots.txt.

    If you continue to experience issues after trying these steps, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.

    Sources:
    Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
    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,

    We’ve checked your sitemap, and it is already validating fine.

    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/

    Once done, remove all your submitted sitemaps and resubmit your main sitemap only /sitemap_index.xml.

    Looking forward to helping you.

    Ok i will try that

    Hello,

    Sure, let us know how this goes.

    Meanwhile, if you have any other concerns, please don’t hesitate to contact us anytime so we can assist you further.

    Looking forward to helping you.

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

You must be logged in to reply to this ticket.