Some 404 errors handled by Nginx, others by Wordpress?


I’ve used EasyEngine to install Wordpress using Nginx and Ubuntu. But I’ve run into an issue regarding 404 errors. Some are handled by Nginx, while others are handled by Wordpress.
For example: shows the Nginx 404 page.

While shows the template 404 page.

Any idea how to change my nginx configuration so that all 404 errors are handled by Wordpress?


Just edit your NGINX site configuration file using following command:
ee site edit
and add following rule:

        if (!-e $request_filename) {  
                rewrite ^/(.+)$ /index.php?q=$1 last;  


Thanks so much - that fixed it! I wonder if that should be added as the default (unless it is and I messed something up)? Thanks again!