message showing

#435601
  • Resolved Ajay Rathod
    Rank Math free

    Hi below message is showing how to resolve

    Since you are using an NGINX server, you may need to add the following code to your configuration file if your Sitemap pages are not loading. If you are unsure how to do it, please contact your hosting provider. Click here to see the code.

    please refer screenshot attached on below link
    https://ibb.co/z6W462d

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

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

    As you are using the NGINX server, if the Rank Math sitemaps are not working properly, you need to add the following code to your configuration 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;
    # END Nginx Rewrites for Rank Math Sitemaps

    If you are not sure, you can ask your web host to add these rewrite rules.

    Looking forward to helping you.

    Hi, how can I know that my sitemaps are working properly or not? Is it compulsory for everyone to add this code ?but this message is showing in my Rankmath.

    Anas
    Rank Math business

    Hello,

    No, it is not compulsory to add the code.

    If the sitemap is loading on sitemap_index.xml URL, you don’t need to add these rules.

    If the sitemap is not loading on that URL, go to domain.com?sitemap=1. If your sitemap loads, then it means Rank Math is able to successfully generate the sitemap of your website but, it is unable to rewrite the sitemap to sitemap_index.xml page.

    Also, the notice is static, it will not go away even after following the steps. That is there to remind users that if the sitemap is not working, they should follow those instructions.

    Hope this helps.

    Don’t hesitate to get in touch if you have any other questions.

    Hello,

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

    Thank you.

    Anas
    Rank Math business

    Hello,

    It seems like you forgot to add the screenshot in the sensitive data section.

    Can you please share the sitemap URL with us?

    However, if the sitemap is loading on sitemap_index.xml, there is no need to add the code.

    Hope this helps.

    Thank you.

    Hi, Sitemap screenshotthe sitemap is loading on sitemap_index.xml (Please refer screenshot), now do I need to add that code or not? please check and confirm

    Hello,

    Since the sitemap is working fine, you don’t have to add the code to your server configuration file. You can simply ignore that message.

    Hope this helps. Let us know if you need any other assistance.

    Thanks.

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

You must be logged in to reply to this ticket.