Checklist to follow when redirecting one domain to the other?


(Garg Ankit) #1

What all should one do when changing a site’s URL from siteone.com to sitetwo.com?


(Pradeep Kumar) #2

I’ll divide this into 3 sections @graciousgarg. :slight_smile:

###1. WordPress Update

You need to manually edit wp-config.php file and update your new website URL.

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

###2. 301 Redirection

You need to edit your blog’s .htaccess file and use this redirection code:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ http://newexample.com/$1 [L,R=301,NC]

###3. Inform Google about this

Last but not least, you badly need to let Google know about this, so that they can pass the link juice and update all the links in the search results.

You can make use of Google Search Console’s “Change of Address” tool bro. :slight_smile:


(Garg Ankit) #3

It’s a blog hosted on Google Blogger, so first two steps don’t apply.

Regarding the 301 redirection, I am forwarding siteone.com (on BigRock) to sitetwo.com (on GoDaddy). I have followed the steps as mentioned in the tutorials. Any idea how much time it will take for the 301 to happen?


(Pradeep Kumar) #4

It should happen within a few minutes bro… you can use any online redirection checker to see if it’s redirected properly or not. :slight_smile:


(Garg Ankit) #5

Didn’t know such a thing existed. Thanks for the info.
Anyway, I checked with two different online checkers and they are resulting in a successful 301 redirect.

But, when I load siteone.com, it is not redirecting to sitetwo.com
Thoughts?

EDIT:
Works fine in Chrome. Fails in Safari!!! Any idea why?
Not a cookie issue as well. Cleared the cache and reloaded, no change :expressionless:


(Pradeep Kumar) #6

Oops, maybe it takes some time to propagate completely bro. Kindly check after some time and update me please. :slight_smile:


(Garg Ankit) #7

Okay, I have a few questions:

  1. After intimating Google using the tool suggested above, do I need to do any other changes in GWT? Like modify robots.txt for the new property by copying content from the old property? Anything else?

  2. What about social signals? Likes, shares, RTs were for the older URL. Is there a way to tell Fb, Twitter, Pinterest, etc. about the change?

  3. How about custom email? Any industry-standard way of handling the migration?


(Pradeep Kumar) #8

I don’t think so bro, your account should be back to normal, just keep an eye on the crawl errors and other ‘errors’ because we might get a few during this ‘redirection’ phase. :slight_smile:

You don’t need to worry about robots.txt for Blogger.com platform bro. :slight_smile:

I recently came across this Social Warfare WordPress plugin’s Share Recovery tool, but again, no personal experience. Heard that they can give back our social signals, you can check it out.

I think there is a way to fix this if you are using G Suite (earlier Google Apps) for your emails bro.

Follow this link: https://support.google.com/a/answer/7009324


(Garg Ankit) #9

No idea how, but came back from work and now the 301 is working on Safari as well.


(Garg Ankit) #10

I am on Zoho mail. I am planning to auto forward emails from old ID to new one for the time being, until the old one automatically phases out over time. Is this a good idea? Do you have a better one?


(Pradeep Kumar) #11

That is the only good possible solution I hope bro. :frowning:

Also, add a signature to your current email saying that you have migrated from your previous old email address.