Sitemap can be read, but has errors

#83659
  • Resolved zawayablog
    Rank Math free

    hello, RankMath Team
    I have added this code on 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;
     # END Nginx Rewrites for Rank Math Sitemaps

    inside file /var/www/html/mydomain.com/ngix.conf

    and when I submit a sitemap URL on google webmaster not working I get this message:
    “Your Sitemap does not contain any URLs. Please validate and resubmit your Sitemap.”

    any solution please I need to submit all sitemap URL :

    /post-sitemap.xml
    /page-sitemap.xml
    /category-sitemap.xml
    /author-sitemap.xml
    /post_tag-sitemap.xml

    Thank you

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

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    You can use this tool: https://www.xml-sitemaps.com/validate-xml-sitemap.html to validate your sitemap URLs. Could you also please share the your sitemap URLs and some screenshots of the errors as shown on the GSC.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Alberto
    Rank Math business

    Hello,

    You only have to add to Google Search Console the sitemap_index.xml sitemap since the others can be removed/renamed dynamically by Rank Math (it could be the cause of the issues you are having).

    All the other sitemaps will be found by Google using sitemap_index.xml.

    Looking forward to help 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 2 replies - 1 through 2 (of 2 total)

The ticket ‘Sitemap can be read, but has errors’ is closed to new replies.