404 Pages on Sitemap

  • Hi, When I first viewed the Pages sitemap, it showed pages I had forgotten to delete.
    After deleting them, I expected the sitemap not to show those pages…but it still does, and when I click on the sitemap page link it comes up as a 404 page.
    So, I guess my question is, how do I refresh the sitemap?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Paul,

    Thanks for getting in touch with us.

    Please open the seo-by-rank-math folder using FTP and delete all the files inside sitemap-cache folder.

    That will update the sitemap cache and remove the deleted pages from the sitemap.

    If you would rather disable cache using PHP code, you can use this filter: https://rankmath.com/kb/filters-hooks-api-developer/#enable-disable-sitemap-cache

    Make sure to change true to false to disable cache.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hi, I’m having the same problem, my Sitemap is giving an error.

    Sitemap could not be read
    General HTTP error
    1 instance
    We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.
    Examples
    HTTP Error:
    404

    When I go to the folder you mention to delete cache, there is nothing in there. Can you help, please?
    Thanks

    “Problem Fixed”. I just went to WordPress Settings-Permalink and Clicked Save Changes and problem solve.

    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://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post 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 4 replies - 1 through 4 (of 4 total)

The ticket ‘404 Pages on Sitemap’ is closed to new replies.