Sitemap 404 error on Plesk (NGINX)

#182052
  • Resolved Orobel
    Rank Math free

    Hello,
    We are facing an issue with the Sitemap module of Rank Math. The sitemap is loading well on /?sitemap=1 but not on /sitemap_index.xml. I have added the additional directives in Plesk (but I think I don’t add it correctly). Can you please help me with the additional directive on Plesk Obsidian 18.0.34: I want to know how to add correctly the following snippet:

    # 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

    Here’s how I added:
    aditional directive nginx

    Thank you in advance.

Viewing 4 replies - 1 through 4 (of 4 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/

    That should fix the issue. Please let me know if that does not. We are here to assist.

    Hello,

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

    Thank you.

    Hello anas, thanks for the reply.
    It seems it does work now (i had alreay done the manipulations you asked before your reply), but the Search Console is facing 404 errors as you can see in this screen.

    Plus, only product_cat sitemap seem to be discovered by Google SC. The others are not repertoried

    Hello,

    Thank you for the follow-up.

    I’ve checked your product-cat sitemap, and it seems that all the URLs are fine.

    In this case, please remove all the submitted sitemaps in your Google Search Console and resubmit your main sitemap only /sitemap_index.xml then give Google some time to recrawl your website

    Google will use your main sitemap to crawl the others as well.

    I hope that helps. Thank you, and looking forward to your update.

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

The ticket ‘Sitemap 404 error on Plesk (NGINX)’ is closed to new replies.