I have small application developed in php. I am trying to access my phpfile from browser. I am using Ngnix server.
When I hit localhost/result.php it shows the echo message. But when I try to pass parameters in the url localhost/result.php/?phone=1234567890 , It gives
404 Page not found message.
Anyone who have faced this issue or know the solution, please let me know.
/
before the?
?/result.php
and you have a query string?phone=12345
. Why is there a/
in between the two? It changes/result.php
to/result.php/
which looks like a directory and (may) be the cause of your 404 response.