S
S
svch042017-06-01 16:33:13
Programming
svch04, 2017-06-01 16:33:13

Htaccess: 1234-1-0.jpg -> photo/1/2/3/4/1-0.jpg. Is such a rule possible?

Good afternoon !
I have a folder with many subfolders. Each subfolder also has many subfolders, and so on. The files are at the end.
Please tell me , is it possible to somehow redirect requests like:
site.ru/photo/1234-1-0.jpg using htaccess
to the physical path:
site.ru/photo/1/2/3/4/1- 0.jpg
?
Thanks a lot.
Best regards, Sergei.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Shumkin, 2017-06-08
@ashumkin

as far as I remember and understand, you can: for example, mod_rewrite

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question