Put that laravel app under project2.
And each project, set up correctly and point to public as the document root.
I have a laravel app and a cakephp app on same server, you just have to point to everything correctly.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I was recently handed a project where there were two Core PHP websites under the same directory. Example: - Main Project | |-Project 1 |-Project 2
Both projects were accessed through the same domain name i.e. main-project.com/project1 and main-project.com/project2. The previous developer upgraded Project 2 and developed it in Laravel. Now my manager wants me to make project 2 (which is now in laravel) accessible the same way before. The problem is every time I want to access project 2 using the previous domain i.e. main-project.com/project2, I get 404 not found. What can I do to fix this issue?
Put that laravel app under project2.
And each project, set up correctly and point to public as the document root.
I have a laravel app and a cakephp app on same server, you just have to point to everything correctly.
Please or to participate in this conversation.