Answer the question
In order to leave comments, you need to log in
How to 301 redirect all images from one folder to another?
Hello!
Please help me to solve the following problem.
There was a site on netcat. Moved it to wordpress. After the transfer, YandexWebmaster began to pile up heaps of 404 errors on the pictures that were in the corresponding netcat folder.
Actually the question is: how to set up a redirect of all pictures from the old folder to the new one?
For example:
when requesting domain.ru/netcat_files/280/525/image.jpg, did domain.ru/wp-content/uploads/image.jpg open?
Thanks in advance to everyone who responds!
Sincerely, Mikhail.
Answer the question
In order to leave comments, you need to log in
RewriteRule ^netcat_files/280/525/(.+) /wp-content/uploads/$1 [R=301,L]
let's be a little more specific
285 - is it a directory it changes? is it from numbers? minimum maximum number of characters ?
525 is also a directory, does it require numbers?
285 is the directory it changes? is it from numbers? minimum maximum number of characters ?
525 is also a directory, does it require numbers?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question