#putting my first project online
7 messages · Page 1 of 1 (latest)
This is a project of Florian and mine. This is a screenshot of our file structure:
When navigating to the default page it works great, but when we put anything behind the '/' we get an error 404. Locally it works fine but when deployed to Hostinger it doesn't.
The issue is Shared Hosting. The document root (so the folder your server is looking for files) should be /public. In Hostinger that's probably preconfigured as public_html. So you should move all files outside of public_html and only place the ones, that are currently in public
Shared Hosting can work, but is not a good option with Laravel.
what are great but inexpensive options for laravel?
I'm not sure if this is exclusive to the UK, but...
Hostinger does have Laravel VPS hosting for as little as £5 per month: https://www.hostinger.com/uk/vps/laravel-hosting
They also have a tutorial showing how to set this up: https://www.hostinger.com/uk/tutorials/how-to-deploy-laravel
I've also used Laravel Cloud for small apps and it doesn't cost too much, but this is dependant on your configuration and traffic.