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!