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

fransyozef's avatar

Laravel on shared hosting , post route not working

Hi I need some help on installing my laravel project on a shared hosting. I've tried these :

https://laracasts.com/discuss/channels/laravel/how-to-move-laravel-54-application-to-shared-hosting

https://laravel-news.com/subfolder-install

My folder structure is :

laravel/

web/

Where web/ has the contents of my /public/ laravel folder and of course the rest of my laravel project is in the laravel/ folder

Now it does work .. ish .. When I open my public url in my browser, the page is showing. But I also have a backend cms (Angular) project in my web/ folder. When I do a post from my Angular project to Laravel I see something very strange in my browser console.

I see the post request begin moved : [HTTP/1.1 301 Moved Permanently 17ms] and it gets converted to a GET request. And my route doesn't have that defined so I get an error back.

What can cause this behaviour?

0 likes
1 reply

Please or to participate in this conversation.