My rank math sitemap_index.xml is not updating.

#852596
  • Resolved Live Chapter
    Rank Math free

    My rank math sitemap_index.xml is not updating. It hasn’t added any new urls after April, 2024 in page, post and product sitemap. I have done all the necessary things mentioned in the help section like, changing site URL count in sitemap, flushing the sitemap, and other things. My server is NGiNX. Please help me update my sitemap, so that it contains the latest URLs.
    The sitemap link is: https://www.maw2wheelers.com/sitemap_index.xml

    regards,

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

    We apologize for the issue you are facing with your Rank Math sitemap not updating. Since you are using an NGINX server, there are a few steps you can take to troubleshoot this issue further:

    1. Check NGINX Rewrite Rules: Ensure that the necessary rewrite rules are added to your NGINX configuration file. You can add the following code:

      # 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
    2. Flush Sitemap Settings: After adding the rewrite rules, go to Rank Math SEO → Sitemap Settings in your WordPress admin area and make any minor changes to the Links Per Sitemap count, then click the Save Changes button.
      flush sitemap settings

    3. Flush Permalinks: Navigate to WordPress Dashboard → Settings → Permalinks and click the Save Changes button without making any changes. This can help refresh the permalink structure.
      Flush Permalinks settings

    4. Exclude Sitemap from Caching: Ensure that your sitemap is excluded from caching. You can refer to this dedicated knowledgebase article for guidance on how to do this.

    5. Disable Transient Caching: If the above solutions don’t work, you can add the following filter to your theme’s rank-math.php file to disable transient caching of your sitemap:

      add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    If you have followed all these steps and are still experiencing issues, 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 XML Sitemaps on NGINX Servers » Rank Math

    Hello,

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

    Please apply the following filter to your site to disable the transients cache for your sitemap.

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    

    Here’s how you can add filter/hook to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    After that, please head over to the following folder of your website via cPanel or FTP and delete all the XML files from there and see if that works for you: wp-content/uploads/rank-math

    If the issue persists, then we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    Let us know how it goes. Looking forward to helping you.

    Thank 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 ‘My rank math sitemap_index.xml is not updating.’ is closed to new replies.