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

bswjtpaul565's avatar

Hosting of laravel based website

Hiii.. I have hosted a laravel project on a server. But the in the root folder already an application is running directly. Now the problem is I am not able to access the website publicly. If I access through /<Project_name>/ then other pages are not routed from route page.

How can I solve the problem.?

0 likes
1 reply
sherwinmdev's avatar

i'm assuming you got a shared hosting environment. if they must exist on the same directory, try looking at the following article https://stackoverflow.com/questions/42605396/setup-laravel-in-shared-hosting

if you can create a subdomain like mylaravelapp.yourdomain.com, you can still follow the article above. it just separates the two sites. otherwise, i'm not too familiar with shared hosting environments as i don't run any laravel sites on them. hope that helps.

Please or to participate in this conversation.