Media Library File Protection problem with .htaccess rules

Viewing 2 posts - 1 through 2 (of 2 total)
#168320

fiddla
Participant

Hi

I have a problem with filenames being duplicated in the .htaccess rules for image thumbnail sizes when an image file is protected in the Media library. So the thumbnail files are not being protected.

The rules are being written like this:

RewriteRule ^(Screenshot-2022-02-08-at-10.26.03.png)$ ../../index.php?wpdmmediaid=290857&wpdmmedia=$1
RewriteRule ^(Screenshot-2022-02-08-at-10.26.03.pngScreenshot-2022-02-08-at-10.26.03-208x117.png)$ ../../index.php?wpdmmediaid=290857&wpdmmedia=$1&thumb=medium
RewriteRule ^(Screenshot-2022-02-08-at-10.26.03.pngScreenshot-2022-02-08-at-10.26.03-640x266.png)$ ../../index.php?wpdmmediaid=290857&wpdmmedia=$1&thumb=large
RewriteRule ^(Screenshot-2022-02-08-at-10.26.03.pngScreenshot-2022-02-08-at-10.26.03-40x40.png)$ ../../index.php?wpdmmediaid=290857&wpdmmedia=$1&thumb=thumbnail
RewriteRule ^(Screenshot-2022-02-08-at-10.26.03.pngScreenshot-2022-02-08-at-10.26.03-768x168.png)$ ../../index.php?wpdmmediaid=290857&wpdmmedia=$1&thumb=medium_large
RewriteRule ^(Screenshot-2022-02-08-at-10.26.03.pngScreenshot-2022-02-08-at-10.26.03-208x266.png)$ ../../index.php?wpdmmediaid=290857&wpdmmedia=$1&thumb=medium_portrait

I think this is because our uploads directory is not using month- and year- based folders.

Thanks for looking into it!
#168330

Nayeem Riddhi
Moderator

Hello Fiddla,

Hope you are well. The issue is working fine from my side. Can you please, give your temporary wp-admin login details in a private reply for checking the issue.

Thank you and regards

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Media Library File Protection problem with .htaccess rules’ is closed to new replies.