We know if a user wish to change the hosting server, he or she wont remove the account completely from the old server without starting their account resolved from new server. This because, no one wants their site down even for a single minute.
There is a common method which a user can test their new account in new host by calling temporary URL in browser. The user can see their new account in new host by using the URL like http://newserverip/~cpanelusername, this loads up their new site in new server. Please remember, actually this time the site is not globally resolving to the new server.. The client here wants to load the site and just need to check it in new server. The temporary URL (http://newserverip/~cpanelusername) works for a normal website, we know that. But it doesn’t work simply for a WordPress site.
For a wordpress site, you got to do the following changes in the wp-config file of account present in the new server.
Also in mysql
#: mysql> select option_value from wp_options where option_name =’siteurl’; (::: wp_options < update wp_options set option_value=’http://newserverip/~cpanelusername/’ where option_name =’siteurl’;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
You can revert the changes made once the account starts resolving from new server globally.