Into the server location put
error_page 404 =200 /index.php;
to redirect all 404 (not found) pages to your index.php
You don't need all the rewrite and location stuff, if you just want to catch all missing pages.
Into the server location put
error_page 404 =200 /index.php;
to redirect all 404 (not found) pages to your index.php
You don't need all the rewrite and location stuff, if you just want to catch all missing pages.