0
I don’t know much about .htaccess
and I came across a project where it blocked some images that I climbed into an img folder of the project.
RewriteRule ^(css|js|img)/(.*)$ statics/$1/$2 [L]
But other images in this folder carried normally. The strange thing is that I searched by the name of the images that carried inside the file .htaccess
and did not find. So I do not know how he blocked some and others not.
But when removing img
of the rule all images started to load.
RewriteRule ^(css|js)/(.*)$ statics/$1/$2 [L]
My doubts are:
Why block uploading images to a project?
Removing
img
of the rule, I am exposing the security of my application in some way?
This is not blocking loading anything, this is redirecting css, js and img folders to a "virtual" folder (a route) that looks like this
http://site/statics/img/image.jpg
– Guilherme Nascimento
Hello William, perfect your analysis. That’s exactly it. I searched and located the statics folder in the project and inside there is another img folder to where this redirection is going. Thank you for clarifying!
– alan