M
M
maks789452020-06-12 15:58:14
htaccess
maks78945, 2020-06-12 15:58:14

301 redirect, how to go to the directory below?

Good afternoon, when adding such a redirect
Redirect 301 /111 /222/333
, everything works correctly, when mysite.ru/111 is requested, it redirects to mysite.ru/222/333,
but I need to go to a lower level, I made such a redirect
Redirect 301 /111 /111/333
, but when mysite.ru/111 was requested, I get this address mysite.ru/111/333/333/333/333/333/333/333/333/333/333 and instead of 404 I get the error "page not available".
Can you tell me how to do this redirect?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2020-06-12
@dodo512

RedirectMatch 301 ^/111$ /111/333

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question