Answer the question
In order to leave comments, you need to log in
How to change filename using RewriteRule?
I need to close access to a file named ex1, but allow it by a different name. Access denied through null.png, which is not on the server. For some reason, access by the new and the old file name is not possible, the [L] flag does not work.
1 RewriteEngine on
2
3 RewriteRule randomName.png ex1.png [L]
4 RewriteRule ex1.png null.png [L]
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