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

DrOreo002's avatar

Redirecting public_html to Laravel project folder

Hello, I'm currently trying to install my laravel project on my shared hosting. So my project is linked to my private repository over ssh and every time I did an update I'll run git pull command to pull my changes, and for this to work without any conflicts I need to make sure I don't do any changes into my project. This includes not to move my public folder into public_html folder, so is there's any way I could make public_html to go to my project's public folder?

It should be something like this public_html -> Redirect to /../Project/public

0 likes
2 replies
a4ashraf's avatar

@droreo002

I didn't get it, you need to move your project folder to your public_html folder or you need to set up your public folder somewhere else?

munazzil's avatar

Go and check your homecontroller and there will be having after the authentication which url should it redirect to.

Please or to participate in this conversation.