I do not have much knowledge on .htaccess
and I came across a project where it blocked some images that I uploaded to an img project folder.
RewriteRule ^(css|js|img)/(.*)$ statics/$1/$2 [L]
But other images in this folder loaded normally. The strange thing is that I searched for the name of the images they loaded inside the .htaccess
file and did not find it. So I do not know how he blocked some and not some.
But by removing% with% of the rule all images will start to load.
RewriteRule ^(css|js)/(.*)$ statics/$1/$2 [L]
My questions are:
-
Why block loading of images in a project?
-
Removing
img
from the rule, am I exposing the security of my application in some way?