if (!-e $request_filename) {
    rewrite ^(.*)$ /index.php last;
}