When migrating your website to a new domain you need to be aware that you could potentially loose google rankings. One way to lessen the impact is to implement a 301 redirect on your old URL via a .htaccess file.

To do so create or edit existing .htaccess file and implement the following code:

 

RewriteRule ^(.*)$ https://www.domainname/$1 [R=301,L]

 

This will ensure that any hits on your old urls will be redirected to the same path on the new domain as a 301 redirect.

We've tested this in Google Search Console with the moving domain option under settings and google seems to accept this rule as a 301 redirect.

Don't forget to inform Google via the Google Search Console -> Settings to ensure that its aware of your new domain change.

 

Esta resposta lhe foi útil? 0 Usuários acharam útil (0 Votos)