Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

alex19mi's avatar

Dingo api routing doen't work after deployment on a host

hello, I've just deployed my laravel project on a shared hosting server, the index page works fine and i do get the default home page of laravel, i didn't changed it because the app is just an api. The problem is with my routing where i used Dingo to set up the api and for some reason it doesn't work , for example when i go to the url: mylaravelsite.com/api/something it doesn't work and i get this error :The requested URL /api/something was not found on this server. I looked on the web and some said to change APP_DOMAIN to nil in api.php in the config folder, but i still get this error. Please excuse me if i'm missing something obvious because i am very new to this. Thank you

PS: my laravel project folder is inside public_html and the files inside the public folder of the project are also inside public_html

0 likes
0 replies

Please or to participate in this conversation.