-
Sitemap is returning a 404 error, I have already tried all the fixes that I found in the support website. Any other advice?
-
Hello,
Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.
Can you please try following the steps below to see if that works for you? (If you didn’t try following steps yet).
#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 doesn’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/You can also follow this guide properly to fix this one: https://rankmath.com/kb/sitemap-404-error/
If the issue persists, please share your sitemap URL with us, so that we can check.
Let us know how it goes. Looking forward to helping you.
Thank you.
Done everything but still not working, sitempa url is
https://octaviobullsharkdiving.mx/sitemap_index.xmlHello,
Most likely you’ve checked the Search engine visibility option at WordPress Dashboard > Settings > Reading. Which is why your entire site is set to
noindex.Rank Math doesn’t add URLs with
noindexto the sitemap. Can you please try unchecking the box form there to see if the sitemap works for you?Let us know how it goes. Looking forward to helping you.
Thank you.
I’ve unchecked the box and flushed the Sitemap cache, now the homapage has the index tag, but it still not work.
I’m not using a cache on the website.Hello,
I was able to check your sitemap with this tool https://httpstatus.io/
and I see it currently has a 301 redirection, which is why currently it’s not accessible.Go to Rank Math -> Redirections, and from the list, search for the redirection that has sitemap_index.xml and delete it; once you do that
you should be able to see it. Alternatively, please go to WordPress Dashboard > Settings > Permalinks and hit the save button once. You can also change the 200 URLs per sitemap option to 201 in WordPress Dashboard > Rank Math > Sitemap Settings.Let me know how it goes.
Looking forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
There are no redirection set on the website, it redirects due to a 404. I have added access data to th ticket, if you want to check…
Hello,
We checked your site and found that for all of your post types, the
Include in Sitemapoption was disabled, and that’s why though your sitemap module was enabled, there was nothing to add to your sitemap.We’ve enabled that option for your posts and pages and now your sitemap is working properly:
If you want to include any other post types or taxonomies on your sitemap then please navigate to your WordPress dashboard > Rank Math > Sitemap Settings > [Post Types]/[Taxonomies] and from there enable the Include in Sitemap option:
Hope that helps and please don’t hesitate to let us know if you have any other questions.
Â
Thank you.Many thanks for your help, I missed that
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.
The ticket ‘Sitemap 404’ is closed to new replies.