I just tried a local Contao CMS 4.4 to 4.9 upgrade, and afterwards I get 404 for all assets.
I started the site like this:
cd web && php -S localhost:8190
For example: /assets/images/f/ReferenzenMaler-4cd0728f.jpg - I can see a ReferenzenMaler-4cd0728f.jpg.json in /assets/images/deferred/f and the content of that file point to the existing file in /files/cto_layout/...
Anybody knows how to resolve this?
So if you want to use contao with the build-in php webserver (
php -S) you need to route assets through the index.php as @fritzmg mentioned.It turned out the slightly adjusted drupal
.ht.router.phpalso works here:And then
cd web && php -S localhost:8190 .ht.router.php