PHP structure with Composer does not work in production in PHP Coding Help Posted 13 hours ago 18 minutes ago, montilla said: But why locally does the project work perfectly? Your local and production environments are not the same. Compare and contrast. 18 minutes ago, montilla said: Whoever takes care of the routes is my Route.php, right? Your PHP isn't being executed in the first place. That's the problem. The web server (Apache) has to know that it needs to execute your PHP. If it does not then you'll get those 404s.