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

Mm.Stoyanov's avatar

Different folder structure

Hello,

My hosting provider refuses to change the virtual host for my project, so they told me change my project's folder structure helping with composer.

So is the folder's structure below is possible: /project_files /app /vendor .env ... /public index.php ....

I really appreciate every answer and good will for helping me. Thank You!

0 likes
5 replies
Mm.Stoyanov's avatar

Thank You jlrdw, i think this is the exact case and your answer was very helpful for me!

jlrdw's avatar

That is @Snapey in that article, he knows laravel very well, helped me also.

2 likes
Mm.Stoyanov's avatar

I followed the rules and unfortunately I received:

Bad Request

Your browser sent a request that this server could not understand. Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request.

and no signs in to the error-log files... :) Cool, may be I'm missing something...

Mm.Stoyanov's avatar

Ok, I'm done! wrong folder's permissions and rights! Thank once again! :)

Please or to participate in this conversation.