Account created on 25 August 2009, over 15 years ago
#

Recent comments

🇵🇹Portugal jonhy81

Hi @mdragon, I don't know if you're in the same situation, but I recently faced the same context with Drupal and the Hostinger hosting. In my case, after checking the report status, I noticed they are using LiteSpeed as the webserver. 

To solve this on my side, I did:

  1. created a file named .htaccess on sites/default/files/styles with content 
    <Files *>
      SetHandler none
    </Files>
  2. Added this line to root .htaccess
    RewriteCond %{REQUEST_URI} !/sites/default/files/styles(.*?)/?.*
  3. Added to setting.php these lines
    $config['image.settings']['allow_insecure_derivatives'] = TRUE;
    $config['image.settings']['suppress_itok_output'] = TRUE;
    $settings['file_public_path'] = 'sites/default/files';

It is still in development, but at least styles are now being created as should be.

Production build 0.71.5 2024