[Drupal] Style Images not generated and Images are not visible issue

I believe it has happened many Drupal users, Images in their website are not visible.

  • In settigns.php
$config['image.settings']['allow_insecure_derivatives'] = TRUE;
$config['image.settings']['suppress_itok_output'] = TRUE;
$settings['file_public_path'] = 'sites/default/files';
  • Sites web root folder .htaccess
RewriteCond %{REQUEST_URI} !/sites/default/files/styles(.*?)/?.*
  • Under /sites/default/files folder .htaccess
<Files *>
  SetHandler none
</Files>

After this I can see images are loading on site.

 

 

 

Leave a Comment