Not so similar. We want to perform kind of rewrite with try_files. If user hit "/some/location/, try_files should search for /api.php?r="/some/location" (api.php file exists) I think the problem is at "?r=". But why it works perfect without "=404" at the end?by Psyered - How to...
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? Whaby Psyered - How to...
![]() |
![]() |
![]() |
![]() |
|