Images not visible in browser or media
-
Hi Dennis,
I use WordPress 5.1.1, have added the requisite ReWriteRule to my .htaccess file before the BEGIN WordPress block (see below), and copied some test images to wp-content/uploads/private/, both by hand on the server, as well as with Media File Manager plugin.
Problem is, browser (Firefox 66.0.1) does not display any images, and in the admin media interface I also see just grey squares for the images in the folder.
The error message in the browser is (with domain and image the corresponding actual names):The image “https://<domain>/wp-content/uploads/private/<image>” cannot be displayed because it contains errors.
This happens with all test images, I have checked ownership and permissions. I even moved some images, and then moved them back to their original locations, where I could view them again.
Any pointers would be most welcome! (one example given in “Link to the page you need help with”).<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Block unauthenticated user access to the /private/ uploads folder
RewriteRule ^wp-content/uploads/(private)/(.*)$ /?pucd-folder=$1&pucd-file=$2 [L]
</IfModule>The page I need help with: [log in to see the link]
- The topic ‘Images not visible in browser or media’ is closed to new replies.