Answer the question
In order to leave comments, you need to log in
.htaccess How to serve another file even if the file in the request exists on the server?
Hello. Please tell me this thing: it is necessary that all requests for pictures are sent to a php file. There is a rule in htaccess: RewriteRule .(?:jpe?g|gif|png)$ images.php
So, if we access a picture that is on the server, then the server gives it away, and if you write a fictitious file name, then a redirect to the script occurs. How to fix it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question