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

rrafia's avatar

Changing existing PHP website to Laravel but keep some old php files

We have a website at work that was built using PHP procedural code (No classes). I recently rebuilt the website in Laravel 5.2 but I have not published the website yet. I know when I publish the website I will change the domain to point to Laravel. However, we have some old php files that are still being used by other software at the company. If I publish Laravel and tries to to access those php files like domain.com/old_php_file.php it will not work. How can I make this work?

Thank you very much for your help

0 likes
3 replies
rrafia's avatar

I tried in my dev environment, It didn't work. Laravel tries to find the route. But the url is .php and it's outside laravel project.

dmitov's avatar
dmitov
Best Answer
Level 9

Place it in your /public directory. It will run just fine.

2 likes

Please or to participate in this conversation.