Hi everybody!
This is my rewrite condition in my nginx virtual host
In server {} block
PHP Code:
location /tools/ {
if (!-e $request_filename)
{
rewrite ^/tools/(.*)$ /tools/index.php/$1 last;
break;
}
}
I known that will remove index.php
example mydomain.com/tools/index.php/controller will rewrite to mydomain.com/tools/controller
I guest $1 are controller, controller/function, controller/function/variable
Can you tell me is that true?
And the 'last' string in command mean?
if (!-e $request_filename) means (my opinion): don't exists file $request_filename, is that true?.
I thank this condition must be: if (-e $request_filename)
Please tell me what case is true
Sorry for my english is not good
Thank you very much!