Setting 404 page in Nginx

Remove the 'fastcgi_intercept_errors' argument from you configuration. It’s unnecessary since 'error_page' declares 404 errors, which should be handled by index.php, which will trigger PHP-FPM to handle it, and WordPress to present your theme’s 404 page.

It seems counter-intuitive, but 'fastcgi_intercept_errors' is actually causing PHP not to handle the error page.

Leave a Comment