Sitemap not working

#1052502
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello, we’re sorry to hear that you’re facing issues with your sitemap. To troubleshoot the problem, here are some steps you can follow:

    1. Check if the Sitemap Loads: First, try accessing your sitemap directly by going to `https://support.rankmath.com. If it loads correctly, you may need to add rewrite rules to your server configuration.

    2. Add Rewrite Rules: Depending on your server type (Apache or Nginx), you may need to add specific rewrite rules:

      • For Apache:
        # 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
      • For Nginx:
        # 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
    3. Validate Your Sitemap: Use the Validate XML Sitemap tool to check if your sitemap is correctly configured.

    4. Check for Caching Issues: Ensure that your sitemap is not being cached by any caching plugins. You can refer to our tutorial on how to exclude sitemaps from caching.

    5. Check Server Restrictions: If you can access the sitemap but external validators cannot, there might be restrictions from your web host or a security plugin. You may need to reach out to your hosting provider for assistance.

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

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
    How to Fix "Incorrect HTTP Header Content-Type" Error in Sitemaps » Rank Math

    How to add?

    For Nginx:
    # 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

    Hello,

    Please skip that part since your sitemaps are working fine.

    You should follow this guide to troubleshoot the issue:
    https://rankmath.com/kb/couldnt-fetch-error-google-search-console/

    Once done, give Google some time to recrawl your site and the “Last Update” column to be updated as well.

    Looking forward to helping you.

    I can do everything still not fetch

    Hello,

    Please share the screenshot of your sitemaps section so we can check as well.

    You can upload screenshots using this tool and add the link here.

    Looking forward to helping you.

    check out screenshot here – https://freeimage.host/i/FxYp2TB

    Hello,

    Please remove all your submitted sitemaps and resubmit your main sitemap only /sitemap_index.xml

    Here’s a guide you can follow:
    https://rankmath.com/kb/submit-sitemap-to-google/

    Once done, give Google some time to recrawl your site, and the “Last read” column will be updated.

    Looking forward to helping you.

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

The ticket ‘Sitemap not working’ is closed to new replies.