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

Pratyush Acharya's avatar

Core PHP and Laravel Projects on same directory

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?

0 likes
2 replies
jlrdw's avatar
jlrdw
Best Answer
Level 75

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.

2 likes

Please or to participate in this conversation.