N
N
Nonoempire2016-12-03 13:55:28
htaccess
Nonoempire, 2016-12-03 13:55:28

Why does the redirect in .htaccess not work as it should?

Good afternoon. Please tell me. I changed the domain of the site. You need to make a 301 redirect. I wrote the following in .htaccess:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^uk-rost\.com
RewriteRule ^(.*)$ build-74.ru/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.uk -rost\.com
RewriteRule ^(.*)$ build-74.ru/$1 [R=301,L]
And it redirects from any page of the old domain only to the main page of the new domain. It seems to be redirecting to the appropriate page. The structure of the site has not changed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nonoempire, 2016-12-03
@Nonoempire

All the same, redirects to build-74.ru/index.php (

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question