Have a look at this https://laravel-news.com/subfolder-install
Also what kind of hosting are you on? VPS or shared hosting? on a VPS there are some tweaks you can make to your apache or nginx config to do this
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
We're using Laravel 8, it's deployed on a sub-directory on our main domain : http://www.domain.com/app
We were able to get the default home page routed by "/" which redirect to public/welcome...
We used a template Craftable to generate an admin interface and had the CRUD Generator It works fine locally (http://127.0.0.1/admin) but we got 404 error on the online version (http://www.domain.com/app/admin)
We suspect this difference of path to be the cause of our 404 error, since we're using sub-directory on the online version, any solution for this problem?
Thanks
Please or to participate in this conversation.