I was trying to relocate my content and media folder so that multiple development versions can have access to the same content/media.
What I tried to do was change the index.php in the dev folder to that:
<?php require __DIR__ . '/kirby/bootstrap.php'; $kirby = new Kirby([ 'roots' => [ 'index' => __DIR__, 'site' => __DIR__ . '/site', 'assets' => __DIR__ . '/assets', 'content' => '/full/path/to/rootfolder/content', 'media' => '/full/path/to/rootfolder/media' ] ]); echo $kirby->render();
Works like a charm for the content folder. But all my images get 404ed. When I check the html output in the browser it still refers to the old media folder that doesn’t exist anymore, but
returns the correct folder.
Thank you for your help!