Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    if you encounter missing images on the site and the images are present on the hosting but if you try to access one of those images directly you get a 404, check the wp-content/uploads folder for an .htaccess file with permissions set to 600. If you have it, change permission to 644 and it should resolve the issue.

    • This reply was modified 6 months, 2 weeks ago by dp667.
Viewing 2 replies - 1 through 2 (of 2 total)