My sitemap.xml is showing blanck after added ngnix conf code

#264944
  • Resolved Saqib Ahmed
    Rank Math free

    My website is running on nginx web server and using centos web control panel.

    I added code this code

    rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
    rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;

    located /etc/nginx/conf.d/vhosts/mywebsite.com.ssl.conf

    then Sitemap.xml is showing blank

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    Can you please follow these steps?
    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    Once done, clear your website and browser cache and check the sitemap.

    If the issue persists, please share the sitemap URL in the sensitive data section so we can check further.

    Looking forward to helping you.

    It works.. thanks

    Hello,

    Glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

The ticket ‘My sitemap.xml is showing blanck after added ngnix conf code’ is closed to new replies.