Testing your WordPress website after Migration
At this point, you have done the work to migrate your website to Inmotion Hosting. The last step before taking the website live on our servers is to test your website. To do this, you will need to modify your hosts file on your computer.
How does a hosts file modification work?
When you visit your-wordpress-site.com in your web browser, you computer must first figure out which web server to contact to retrieve the webpage. It will find this information out by asking a nameserver. Think of a nameserver as the phonebook for websites. If you need to know someone's phone number, you would find this information in a phonebook by looking it up. You computer does the same task, however instead of using a phonebook it will use a nameserver.
If your computer asks the nameserver where your-wordpress-site.com is located it will retrieve the location of your previous host, HostABC. Since this will display your live site, we cannot use this method without first modifying the hosts file on the computer. A Hosts file overrides the computer looking at the phonebook, and instead tells the computer where to go to retrieve the website by using a specific IP address (which would be the IP address associated with your account with InMotion Hosting). This change to the hosts file will only affect the computer that you modify. Any other visitors to your website will be directed to your site on HostABC.
How to test using a hosts file modification?
For more information regarding modifying your hosts file, please see either of the following links:
After you have tested your website on InMotion Hostings server, you can be reassured that when you change the domain's nameservers there should be little or no issues with your WordPress website after the move.
If you missed our previous article, please see the Configuring WordPress After a Migration tutorial. For more information on this course please visit Migrating your Existing WordPress site to InMotion Hosting
‹Section 0: Fixing Image Links after a WordPress Migration
Support Center LoginOur Login page has moved, Click the button below to be taken to the login page.
2017-03-07 10:47 am
I have migrated the website to a linux cpanel from Godaddy and the website has started running from the new location HOWEVER all the images are broken everywhere in the website and WordPress dashboard also doesn't show any image (if i try to access/open them in Media tab).
2017-03-07 3:53 pm
You will want to make sure that the change of location is reflected in the database. You can go through the database to correct the image links.