Answer the question
In order to leave comments, you need to log in
How to implement a redirect from any links of a domain to the same ones of another?
We are planning a new domain for the site, and the old one should remain only for redirecting users and search robots to the new domain.
It is necessary to organize redirection in such a way that when accessing the old domain via any link, for example, site.ru/news/111 , it will be transferred to the new domain exactly along the path site2.ru/news/111
How best to do this? By means of php, js, or on the server side in a bunch of apache + nginx?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question