Route Not Found Error Upon Deployment to Online Server
Ghenimi opened this issue · comments
Hello,
The API work fine on my local machine, but upon deployment to an online server, it returns the error {"code":1000,"message":"Route '/sub/api/records/table' not found"}. I have tested it on two different domains, one using Cloudflare and the other on OVH servers.
Any insights or guidance on debugging this discrepancy would be greatly appreciated.
Hi, I guess the server config is not correct, check out this (new) part of the readme:
https://github.com/mevdschee/php-crud-api?tab=readme-ov-file#pretty-url
Thank you for your reply, it's not working with that .htaccess configuration.
It doesn't seem like you have a problem with this software. I don't even know what web server you are using, but I'm pretty sure the problem lies there as the docker tests and the docker compose run fine. I'm closing the issue for now.
NB: Normally I try to be more constructive/supportive, but you are saying you are running domains on cloudflare or on (multiple?) ovh servers and that does not make any sense to me, so I'll take a pass on this one.