sitemap could not fetch in google search console

#441600
  • Resolved paisa street
    Rank Math free

    The sitemap of my website is not fetching in google search console and when I open it by going to the sitemap setting of rank math, then the link is getting opened, The errors I am getting in the search console are below

    1.General HTTP error
    1 instance
    We encountered an error while trying to access your sitemap. Please ensure that your sitemap is present at the specified address and is not blocked to Google. See our help center for more debugging help.
    Examples
    HTTP Error:
    404

    2.Sitemap is HTML
    1 instance
    Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead.
    Examples
    Line 2
    Tag:
    html

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    Can you please share the sitemap URL with us?

    You can also follow these steps and see if that helps:
    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. Remove all the sitemaps from Search Console, clear your website cache, and resubmit the sitemap_index.xml

    Hope this helps.

    We look forward to helping you.

    https://paisastreet.in/sitemap_index.xml

    Whatever you have told, I have done the all, even after that the sitemap has not been fetched, you tell me how it will be correct.

    now! The errors I am getting in the search console are below :

    General HTTP error
    1 instance
    We encountered an error while trying to access your sitemap. Please ensure that your sitemap is present at the specified address and is not blocked to Google. See our help center for more debugging help.
    Sitemap is HTML
    1 instance
    Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead.
    Examples
    Line 2
    Tag:
    html

    Anas
    Rank Math business

    Hello,

    I checked the sitemap, it is returning a 404 error.

    Please add this filter to your website and see if that fixes the issue:

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

    Here is a guide you can follow to add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Once done, flush the Sitemap cache by following this video screencast in the previous reply, clear the website cache and resubmit the sitemap. Then, wait for Google to crawl the sitemap.

    Hope this helps.

    Thank you.

    I liked this third one but I don’t understand Where to paste this code in functions.php

    Hello,

    You can add the code at the last line (bottom part) of your theme’s functions.php file.

    Here’s a guide you can follow as well:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/#functions-php-file

    I hope that helps.

    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 5 replies - 1 through 5 (of 5 total)

The ticket ‘sitemap could not fetch in google search console’ is closed to new replies.