P
P
Pan Propan2015-10-24 11:15:12
PHP
Pan Propan, 2015-10-24 11:15:12

How to set up a 301 redirect to a new domain in Opencart 2?

I'm moving to a new domain. The old domain has some TIC indicators, I would like to keep all this.
1) Copied the site to a new domain.
2) Set up a 301 redirect.
htaccess file now looks like this

<FilesMatch "robots.txt$">
RewriteEngine off
</FilesMatch>
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://kavdent.ru/$1 [R=301,L]

3) Robots.txt It looks like this, Host indicated my new domain in it.
User-Agent: *
Disallow:
Host: kavdent.ru
How well did you do everything? Does it make sense to make a separate redirect for each page of the site?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Zdorov, 2015-10-25
@Marduh-Top

no, you don't have to do that.
if you want to smoothly change the domain, then it is better to set up the work of two domains in parallel on 1 site.
specify the new domain in robots.txt.
on the site itself, remove all absolute links, and add the site on the new domain to the webmaster with all the consequences.
and so here is the advice from Yandex https://yandex.ru/support/webmaster/yandex-indexin...
301 is needed when they stick together in Yandex.
and when to change in google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question