I am trying to use Restler in a PHP app api, but I am getting a 404
object returned on all requests. I have reviewed the following similar questions:
- Restler Returns Always Not Found With Or Without Index.php
- Restler always returns 404: Not found
- Restler API framework installation
I am almost certain that the problem lies in the server configuration. I can run the example files in my local environment, but as soon as I push it to the live server, this problem persists.
For example, when I copy the folder _001_helloworld
, which works locally, to my server, I get 404
response body:
{
error: {
code: 404,
message: "Not Found"
},
debug: {
source: "Routes.php:431 at route stage",
stages: {
success: [
"get"
],
failure: [
"route",
"negotiate",
"message"
]
}
}
}
How can I fix all routes returning 404 in the response body in Restler.