Hi,
location /some/location/ {
try_files $uri /api.php?r=$request_uri;
}
Is working perfectly. It does process domain.com/some/location/ as domain.com/api.php?r=/some/location/ (.php files processed in other location).
But
location /some/location/ {
try_files $uri /api.php?r=$request_uri =404;
}
Is always returning 404 error code.
Why this happening? What I am doing wrong?
location /some/location/ {
try_files $uri /api.php?r=$request_uri;
}
Is working perfectly. It does process domain.com/some/location/ as domain.com/api.php?r=/some/location/ (.php files processed in other location).
But
location /some/location/ {
try_files $uri /api.php?r=$request_uri =404;
}
Is always returning 404 error code.
Why this happening? What I am doing wrong?