Y
Y
Yuri Kulyash2014-05-20 01:37:05
Apache HTTP Server
Yuri Kulyash, 2014-05-20 01:37:05

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

1 answer(s)
Y
Yuri Kulyash, 2014-05-20
@rekzi

habrahabr.ru/company/sprinthost/blog/129560

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question