Sitemap link not working

#1116952
  • Sitemap Link show error of 404 not found on my website, I don’t know what happened I didn’t changed anything.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    We apologize for the issue you are facing with your sitemap link showing a 404 error. This can happen for several reasons, and we can help you troubleshoot it. Here are some steps you can take to resolve the issue:

    1. Flush Permalinks: Sometimes, simply saving your permalink settings can resolve the issue. Go to Settings → Permalinks in your WordPress admin area and click the “Save Changes” button without making any changes.
      Flush permalink settings

    2. Check Rewrite Rules: If you are using an Apache server, ensure that the correct rewrite rules are added to your .htaccess file. You can find instructions on how to edit your .htaccess file here.
      Here’s the code you may need to add:

      # START of Rank Math Sitemap Rewrite Rules
      RewriteEngine On
      RewriteBase /
      RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
      RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
      RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]
      # END of Rank Math Sitemap Rewrite Rules
    3. Exclude from Caching: If you are using a caching plugin, make sure to exclude the sitemap files from being cached. Caching can interfere with the sitemap functionality.
      You can learn more about excluding sitemaps from caching here.

    4. Check for Content: Ensure that there is content on your website that should be included in the sitemap. If there are no posts or pages, the sitemap may not generate correctly.

    If these steps do not resolve the issue, please reply to this ticket with your website URL so we can assist you further. Thank you for raising this concern!

    Sources:
    Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
    Rank Math Sitemap Issues and Their Fixes » Rank Math

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    Hello,

    We checked your sitemap, and we can see it is working properly without any issues. Please check the screenshot in the sensitive data section for reference.

    If you’re still facing the issue, please try clearing your website and browser cache and check again.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

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

You must be logged in to reply to this ticket.