Sitemap is redirecting to homepage

#956252
  • Resolved Sarah Lorenzen
    Rank Math pro

    My sitemap is redirecting to my homepage.

    The sitemap module is turned on.

    This is what I was given from my Hosting:

    09:47 AM
    curl -I https://lasercutlife.com/sitemap_index.xml 60 ✘  02:24:07 
    HTTP/2 301
    date: Fri, 24 Jan 2025 17:47:26 GMT
    content-type: text/html; charset=UTF-8
    location: https://lasercutlife.com
    x-redirect-by: Rank Math
    expires: Fri, 24 Jan 2025 17:48:26 GMT
    cache-control: max-age=60
    cf-cache-status: EXPIRED
    server: cloudflare
    cf-ray: 9071d93fca3301a0-GRU
    alt-svc: h3=”:443″; ma=86400

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

    We apologize for the issue you are facing with your sitemap redirecting to your homepage. This can happen due to a few reasons, and we appreciate you providing the details from your hosting.

    Here are some steps you can take to troubleshoot this issue:

    1. Check .htaccess File: If you are using an Apache server, ensure that your .htaccess file does not have any rules that might be causing the redirect. You can add the following rewrite rules to your .htaccess file if they are 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
    2. Flush Permalinks: Sometimes, simply flushing permalinks can resolve issues with sitemaps. Go to Settings → Permalinks in your WordPress dashboard and click Save Changes without making any changes.

    3. Check for Plugin Conflicts: There may be a conflict with another plugin. You can use the Health Check plugin to identify any potential conflicts.

    4. Server Configuration: Since you are using Cloudflare, ensure that there are no settings in Cloudflare that might be affecting the sitemap. You may want to temporarily disable Cloudflare to see if that resolves the issue.

    5. Contact Hosting Support: If the above steps do not resolve the issue, it may be beneficial to reach out to your hosting provider for further assistance, as they may have additional insights into server-level redirects.

    If you continue to experience issues after trying these steps, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further. Thank you for raising this concern!

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

    Hello,

    We’re delighted to hear that this issue has been resolved. We appreciate your feedback.

    This ticket will be closed now, but if you ever have another question or need any help in the future, please don’t hesitate to create a new forum topic. We’ll be more than happy to assist you.

    Thank you.

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

The ticket ‘Sitemap is redirecting to homepage’ is closed to new replies.