A
A
Alexander2020-04-22 15:25:02
PHP
Alexander, 2020-04-22 15:25:02

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

1 answer(s)
D
Dimonchik, 2020-04-22
@dimonchik2013

ngninx of course, or even load balancer in front of it
https://serverfault.com/questions/502026/nginx-red...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question