Sitemap 404

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

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    I checked your sitemap page and it seems to be working fine on our end. Please check the screenshot I inserted in the Sensitive Data Section.

    If you ever encounter a 404 in the sitemap page, please follow these steps:
    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/xXXhDt

    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.

    That should fix the issue. Please let us know if that does not. We are here to assist.

    I am not using a caching plugin. I have an nginx server. This problem comes from time to time and is not very nice. (cause also on other pages)

    Hello,

    Thank you for contacting Rank Math today.

    Since you are using NGINX, add the following code to your NGINX configuration file or you can ask your hosting support to add it.

    
     # START Nginx Rewrites for Rank Math Sitemaps
     rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
     rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
     # END Nginx Rewrites for Rank Math Sitemaps
    

    Nginx is known to sometimes hinder the generation of sitemaps on a number of site. The above configuration will ensure this doesn’t happen and your sitemap is generated successfully.

    Once you have added the code, please check the following:

    Is the sitemap working fine in your browser? You can check that by going domain(.)com/sitemap_index.xml

    If the sitemap is working fine, you can try validating it on this link: https://www.xml-sitemaps.com/validate-xml-sitemap.html

    If it is valid, head over to your GSC and submit only your main sitemap file(sitemap_index.xml). If you had submitted any other sitemaps, please make sure to remove them when submitting Rank math sitemap. Let us know if you face any issues.

    Looking forward to helping you. Thank you.

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

You must be logged in to reply to this ticket.