How to deploy a slim rest api on shared hosting

hello everyone,

I am building a rest api using slim framwork . everything works perfectly on my local machine . However when I uploaded the files to the webhost , it doesn’t . when I hit my webhost url it lists the directories (public included) and the urls I set don’t work anymore . any tips on how to deploy it correctly? Thank you!

If you see the public folder your files were not uploaded to the correct place. Sometimes with shared hosting you don’t have access to a directory “above” the public folder, which could be the issue. Based on what you’ve described above, you will want to upload your files one directory level higher than where you previously uploaded them, if your host gives you access to that location.