D
D
DeniSidorenko2019-06-25 12:17:18
Search Engine Optimization
DeniSidorenko, 2019-06-25 12:17:18

Redirects to internal links not working?

Good afternoon, we developed it on a test domain and transferred it to the production one. Put the following code in .htaccess
Test - baby-top-top.ru
Working https://babytop-top.ru

RewriteEngine On
RewriteCond %{HTTP_HOST} ^baby-top-top.ru [NC]
RewriteRule ^(.*)$ https://babytop-top.ru/$1 [L,R=301]

When I go to baby-top-top.ru, the redirection really goes on.
However, if I write to the address bar baby-top-top.ru/product-category/playpens, the redirection does not work. What could be wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Gvozdev, 2019-06-25
@arty23_03

Site on Wordpress? Update Permalinks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question