• We’ve had a number of 404 errors with our NGINX setup since version 4.0.0 was released. I was able to solve the issue and wanted to share the solution to see if it’s a potential bug with certain NGINX setups.

    We use the standard WordPress-friendly NGINX rule:

    location / {
      try_files $uri $uri/ /index.php?$args;
    }

    This rule alone was causing a 404 error since upgrading to 4.0.0. We added the following rule which solved the error:

    location ~ ^/(sitemap.xml) {
      try_files $uri $uri/ /index.php?$args;
    }
    location / {
      try_files $uri $uri/ /index.php?$args;
    }
    • This topic was modified 5 years, 4 months ago by nickkeenan.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘404 issues on NGINX with Version 4.0’ is closed to new replies.