Answer the question
In order to leave comments, you need to log in
Why 301 redirect does not lead to the right link?
There are a number of links at the sub.domain.ru address, and when accessing them, a 301 redirect should work. I inserted this code into htaccess, everything redirects successfully:
Redirect 301 /first/second https://domain.ru/first/second
Redirect 301 /first/second/link https://domain.ru/first/second/link12
Answer the question
In order to leave comments, you need to log in
Relatively speaking, the rule Redirect
does not act on the exact link, but on the initial part of the path, preserving its remaining part. Your second link falls under the first rule. Change the order of the rules.
If the server is configured correctly to work with these instructions, the browser may also cache redirects. Try to work out this option after clearing the cache or in incognito mode.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question