sitemap_index.xml AND /page-sitemap.xml troubleshooting request

#963429
  • Resolved anon1620
    Rank Math free

    Hi RankMath Support team,

    My /sitemap_index.xml and /page-sitemap.xml file redirects back to my website’s homepage.

    However, my post-sitemap.xml and locations.kml files work.

    I’ve followed the instruction here https://rankmath.com/kb/sitemap-404-error/ with mixed results, specifically:

    I’ve successfully done items 3.1, 3.2.2 (Apache server), and for 3.5 my site is generally set to index.

    When I performed 3.4, my site showed that code recommending in 3.4 at the top of the homepage. So I removed the php file 3.4 suggested creating.

    I am not running any other caching plugins. Any additional suggestions on what is causing my sitemap issues?

    Happy to share more configuration data if helpful.

    Thanks so much in advance,

Viewing 1 replies (of 1 total)
  • Hello,

    We apologize for the issue you are facing with your sitemap files redirecting to your homepage. Thank you for providing detailed information about the steps you’ve already taken.

    Since your /sitemap_index.xml and /page-sitemap.xml files are redirecting back to the homepage, here are a few additional troubleshooting steps you can try:

    1. Flush Permalinks: Sometimes, simply flushing the permalinks can resolve issues with sitemap generation. Go to Settings → Permalinks in your WordPress admin area and click the Save Changes button without making any changes.
      Flush permalink settings

    2. Check .htaccess File: Ensure that your .htaccess file has the correct rewrite rules for Rank Math. You can add the following code if it’s not already present:

      # 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. Check for Plugin Conflicts: Even though you mentioned not running any caching plugins, other plugins might still conflict with Rank Math. You can use the Health Check plugin to troubleshoot potential conflicts.

    4. Review Robots.txt: Ensure that your robots.txt file is not blocking access to your sitemap files. You can check this in Rank Math SEO → General Settings → robots.txt.

    5. Custom Canonicals: If you have set custom canonical URLs for your pages, it might affect their appearance in the sitemap. Ensure that you are not using custom canonicals that could be causing this issue.

    If these steps do not resolve the issue, please reply to this ticket with any additional configuration data or error messages you may have encountered, and a human agent from the Rank Math Support team will assist you further.

    Thank you for your patience, and we look forward to helping you resolve this issue!

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math

    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 ‘sitemap_index.xml AND /page-sitemap.xml troubleshooting request’ is closed to new replies.