I use this rule for rewriting if directory doesn't exist:
if (!-d $request_filename ) {
rewrite ^/([^/.]+)$ /profile.php?nick=$1 last;
}
The tutorial says that "if" is bad. Is there any way how to change this rule so tyhat it works without "if"?
Thanks.