404 errors on xml files on nginx blog in a subdirectory

#576976
  • Resolved Anonymous
    Rank Math free

    Hi – I can see the sitemap via the query: https://www.mutantpop.net/artists/?sitemap=1 and https://www.mutantpop.net/walk/?sitemap=1 but even though I’ve added your rewrite code to the domain’s nginx conf file, the xml redirects aren’t working.

    Now exactly the same server and almost the same domain setup runs these sites, and Rank Math sitemap works great: http://www.radioclash.com/sitemap_index.xml

    I have tried all your fixes – saving the sitemap settings with a change, permalink save, adding the transient cache function, and have disabled caching plugins (I use Supercache and Redis) and added the exceptions – nothing works.

    Only real difference is these blogs are in subdirectories? Are you sure your redirect code works for those cases?

    I’ve tried placing it in the main server { } part and also the location for each directory, neither works.

    Any ideas?

    Tim Baker

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anonymous
    Rank Math free

    Solved it – it was a weird Nginx issue, which affects one domain and not another. Not sure why, but removed the expired header code (I set xml files for 1h expiry for Cache Control) and it works.

    Not sure why that domain errors and the other using the exact same code doesn’t?

    Hello,

    Thank you for contacting Rank Math support and I am glad that you are able to sort the issue with your sitemap.

    We have a guide on how to address this issue for your sitemap if you are running on an NGINX server. Please refer to this KB article: https://rankmath.com/kb/sitemap-404-error/#num-3-2-1-add-rewrite-rules-to-nginx-server

    Please do not hesitate to let us know if you need my assistance with anything else.

    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 ‘404 errors on xml files on nginx blog in a subdirectory’ is closed to new replies.