Hey everyone,
I recently updated my website from K3 to K5. Locally everything is working fine but on the live site all images are not displayed. In the panel some are working other do not. I already tried some things but without any result.
For better context here’s my config code:
return [
'debug' => true,
'languages' => true,
'urls' => [
'media' => '/media',
],
'roots' => [
'media' => __DIR__ . '/../../media',
],
'thumbs' => [
'driver' => 'gd',
'quality' => 80,
],
];
as well as my htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
Exclude media folder from rewrite (allow direct image access)
RewriteCond %{REQUEST_URI} !^/media/ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L]
Block access to sensitive files and folders
RewriteRule (^|/).(?!well-known/) - [F,L]
RewriteRule ^(kirby|site|content)/(.*) - [F,L]
<IfModule mod_mime.c>
AddType image/webp .webp
AddType image/avif .avif
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript application/json
</IfModule>
Maybe someone ran into the same problem when migrating or can point me in the right direction.
Thanks in advance!