C
C
choodo2016-12-01 11:19:38
htaccess
choodo, 2016-12-01 11:19:38

How to "pick up" pictures from the old site?

Situation: the engine was updated for the site, the old version of the site was transferred to old.site.ru. The articles have been copy-pasted for now. Now the pictures refer to the old paths and are not displayed. Please help me write htaccess rules for percent-encoded filenames (%xx), so that the path from the old site is selected for image paths, if possible.
Let us have the following links in our html:


    Should it be something like this?
Rewriteengine on
Rewriterule ^site\.ru\/wp-content\/uploads\/2011\/10\/%F1%EE%E3%EB%E0%F1%EE%E2%E0%ED%E8%E5-%E8-%F3%F0%EE%E2%EE%EA\.jpg$ old.$1

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question