I have a simple nginx rewrite rule below :
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 break;
}
It works fine with urls' like http://mydomain.com/controller/action, however when the requested url is something like :
http://mydomain.com/index.php/controller/action
it failed to recognize that index.php is an existing file, in which case the rewrite shouldn't take place.
How can I fix this? Thanks for your help.