M
M
mipfikus2020-09-29 21:41:34
htaccess
mipfikus, 2020-09-29 21:41:34

How to make a 301 redirect from each page of one domain to the same address of another?

It doesn't help.

For example, I used to have the example.ru domain, and now I have newexample.ru
How can I make it so that when I visit example.ru/page, I redirect to newexample.ru/page?

Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Mikhailov, 2020-09-29
@mipfikus

RewriteEngine On
RewriteCond %{HTTP_HOST} example.ru
RewriteRule (.*) https://newexample.ru/$1 [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question