Getiing 404 Error for Rankmath Sitemap

#701039
  • Resolved Anonymous
    Rank Math free

    Hey,

    I am getting 404 error for rankmath sitemap. I have already tried saving permalinks in settings, rankmath settings etc but still no use. Please help me fix it.

    Note: I didn’t get any notification related to adding rewrite rules manually on Nginx Server.

    please help me fix this.

    Thanks
    Sreedharan

Viewing 1 replies (of 1 total)
  • Hello,

    I’m sorry to hear that you’re experiencing issues with the Rank Math sitemap. It seems like you’ve already taken some steps to resolve the problem, but it’s still persisting.

    It’s possible that the 404 error is occurring due to missing rewrite rules on your Nginx server. Even if you didn’t receive a notification about this, it might be worth checking if these rules are in place.

    If you’re using an Nginx server, you may need to add the following rewrite rules manually:

    # 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;
    rewrite ^/([a-z]+)?-sitemap.xsl$ /index.php?xsl=$1 last;
    # END Nginx Rewrites for Rank Math Sitemaps

    If you’re not sure about adding these rules, I recommend reaching out to your server administrator or hosting support for assistance.

    Once the rewrite rules are added, you’ll also need to flush the sitemap cache. You can do this by navigating to Rank Math SEO → Sitemap Settings and making any minor changes to the Links Per Sitemap count, then clicking the Save Changes button.

    I hope this helps resolve the issue. If you have any further questions or need additional assistance, please feel free to let us know.

    Thank you!

    Sources:
    Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    Rank Math XML Sitemaps on NGINX Servers » Rank Math
    How to Configure Sitemaps in Rank Math – Best Settings and Tips

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

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

The ticket ‘Getiing 404 Error for Rankmath Sitemap’ is closed to new replies.