the code added in the .htaccess file in the uploads folder:
<Files *.php>
deny from all
</Files>
in itself isn’t causing the issue. This can be a good security measure, blocking access to PHP files in your uploads folder.
the issue here is the permissions on that .htaccess file, if they are set to 600, apache triggers an error when accessing the uploads folder as it is trying to read .htaccess and it can’t due to the permissions being set to 600.
if the file only contains the code mentioned above, and permissions are set to 600, just change them to 644 and it should resolve the issue with your images not loading while still blocking PHP files in the uploads folder which is a good security measure.
-
This reply was modified 6 months, 2 weeks ago by dp667.