Hello,
does someone know which of these two methods is faster to process for Nginx for handle non-existing files :
(we suppose index.php will handle 404 errors)
[b]First one with -e directive :[/b]
[code]
if (!-e $request_filename) {
rewrite ^(.*) /index.php last;
}
[/code]
[b]Second one using error_page and @ :[/b]
[code]
error_page 404 = @foo
location @foo {
rewrite ^(.*) /index.php last;
}
[/code]
Thank you.