XML Sitemap not showing

#872292
Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello,

    We apologize for the issue you are facing with your XML sitemap not displaying. There could be several reasons for this problem. Here are a few steps you can take to troubleshoot:

    1. Check for Errors: Ensure that there are no errors in your server configuration that might be preventing the sitemap from loading. You can try accessing your sitemap directly by visiting `https://rankmath.com/wp-content/uploads/2021/05/Save-Changes-1.jpg. If it loads, then the issue may be related to rewrite rules.

    2. Rewrite Rules: If the sitemap does not load, you may need to add some rewrite rules to your server configuration. For Apache servers, you can add the following code to your .htaccess file:

      # 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 servers, you can add the following code to your Nginx config file:

      # 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. Plugin Conflicts: Sometimes, other plugins can conflict with Rank Math. You might want to check for any plugin conflicts using the Health Check plugin.

    4. Check Robots.txt: Ensure that your robots.txt file is not blocking access to your sitemap. You can check this in the Rank Math settings under Rank Math SEO โ†’ General Settings โ†’ robots.txt.

    If these steps do not resolve the issue, 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

    Webzaaa
    Rank Math free

    Hi, tried these but it didn’t work.

    Hello,

    Thank you for contacting support.

    We can see that the issue is only related to the stylesheet of the sitemap. The actual XML data for the sitemap is outputted correctly.

    The XSL file (stylesheet) contains an incorrect meta entry for the charset that our plugin doesn’t add so it must be done by another plugin or your theme that is “hijacking” that file and adding the incorrect meta tag.

    We would recommend the following tutorial to discover the plugin/theme that is conflicting with this: https://rankmath.com/kb/check-plugin-conflicts/

    If you cannot do that, please share working WP credentials in the sensitive data section of this ticket so our team can debug the issue further and assist you with it.

    Looking forward to hearing back from you.

    Webzaaa
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Webzaaa
    Rank Math free

    have shared the credentials, please check

    Hello,

    We tried to access the website using the credentials you shared and it states that the current username is not registered on the website.

    Can you please verify the same and get back to us so we can debug the situation further?

    Thank you.

    Webzaaa
    Rank Math free

    please check now

    Hello,

    We flushed the sitemap cache, and it is working fine now. However, we can check that you are using a very old version of the PRO plugin. Since you don’t have a PRO plan, we recommended removing it from the site to avoid conflicts and issues.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Webzaaa
    Rank Math free

    Hi,

    its not working actually. When I login and check, it works. But when its logged out, it doesn’t

    Hello,

    The issue is related to the Fix Invalid HTML option of the Swift Performance plugin. If you disable it, the sitemap works fine even when you are logged out.

    Please disable the option or get in touch with the support of the Swift Performance and ask them to exclude the sitemap stylesheet.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Webzaaa
    Rank Math free

    worked, thanks!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on
    https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post

    about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

You must be logged in to reply to this ticket.