last day (15 days later) » 

12:34 AM
0
Q: Slim 3 App returns 404 with existing endpoints

MohaleI am using Slim Framework 3 in my project. The app has two (2) endpoints which are /numbers and / and they are both accessible when running the app on my local machine. The problem is that /numbers returns 404 on the remote/hosted server which is on digital ocean. What does not make sense is that...

 
Is it a custom 404 or just the default 404 page by your web server? Are you sure you have put .htaccess file there as well?
 
It's default 404 and yes I think I put .htaccess at the right place because I uploaded everything as it was from local machine to the digital ocean
 
Could you please make sure of that? Just check if the file is there. Because some tools used to upload files just might ignore dot files by default.
 
I just confirmed, and yes it has been uploaded. I would upload the screenshot of the files on the server if I knew how to do so. I am looking into uploading the screenshot
 
What does visiting yourdomain.com/index.php/numbers give you?
 
12:34 AM
It gives 404 default error message
Hi, I have decided to take this to a chat to avoid a long thread of comments on the post.
 
HI :)
Are you sure the routes are defined in files on the server?
did you check the content manually?
 
Yes, I even edited the files directly from the server, and I still get the same problem. I receated the index file which has all endpoints, and then pasted the contents of the local file in the remote file.
 
and what does visiting yourdomain.com/index.php/ (with the trailing slash) gives you?
 
I get this `The requested URL /numbers/ was not found on this server.`

`
 
don't add /numbers just index.php/
 
12:45 AM
Yes I did not add index, I just did domain/numbers/ and I got 404
 
I thought it might be a problem with the .htaccess rules
I've run out of ideas on how to diagnose this problem
sorry, I hoped I could help
 
Thanks a lot hey, I am trying other alternatives, thanks a lot for your time by the way
 
You're welcome :)
 

last day (15 days later) »