Hello all, Enjoy this tutorial!!!

There are many ways to achieve this, well am used to this regular method.

1.Export all your WordPress contents in the Original server.

Navigate to the WordPress installation directory on your server select all(all folders and files) and compress into a zip directory.

Select that zip file and download to your computer.

2. Export your WordPress MySQL database in the original server

In your server homepage go to PHPMyadmin (I bet you know where, if not use the ASK JOHN section and let me know or use the comment), Locate your WordPress database and export the content (SQL format).

3. Import all your WordPress content in the New Server

Navigate to the root folder(public_html) or create a directory in your new server depending on where you want to install it. Use an FTP software to upload the zipped file you downloaded from your original directory, then unzip it in the your new server.

4. Import your MySQL database to the new server

In in your new server go to MySQL wizard and create a new database(Note the details) then navigate to PhpMyadmin open the created database, then upload the exported database from the original server.

5. Update the wp-config.php file in the New Server

Navigate to where you unpacked the zip file and locate wp-config.php use the server editor and edit it. Locate where its written.


change ‘http://example.com’ to the correct url of the new server.

Also locate

/** The name of the database for WordPress */
define('DB_NAME', 'putyourdbnamehere');
/** MySQL database username */
define('DB_USER', 'usernamehere');
/** MySQL database password */
define('DB_PASSWORD', 'yourpasswordhere');
/** MySQL hostname */
define('DB_HOST', 'localhost');

Enter the database information from your database as follows:

  • putyourdbnamehere is your MySQL Database Name
  • usernamehere is your MySQL Database Name
  • yourpasswordhere is your MySQL Password
  • localhost is your MySQL Host Name (its always ‘localhost’)

Save your Modifications.

6. Fix the Broken Links

Finally, you need to clean your site of outdated link paths.

To Fix Broken Links After Moving Your WordPress Site

  1. Log in to your WordPress admin panel.
  2. From the Plugins menu, click Add New.
  3. Enter Search and replace, and then click Search Plugins.
  4. Locate the Search and Replace plugin, and then click Install Now.
  5. Click OK.
  6. Click Activate Plugin.
  7. From the Tools menu, click Search and Replace.
  8. Enter your old site URL in the Search for field. For example, http://olddomainexample.com (no trailing slash).
  9. Enter your new site URL in the Replaced with field. For example, http://newdomainexample.com (no trailing slash).
  10. Select All, and then click Go.
  11. Using your hosting account’s editor, open your wp-config.php file, and remove the following two lines:
  12. define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com'); 


    If by any means your site is still redirection to Original server. Follow the steps below to further troubleshoot it.


    1. Edit the wp-config.php file.

    2. After the “define” statements (just before the comment line that says “That’s all, stop editing!”), insert a new line, and type: define('RELOCATE',true);

    3. Save your wp-config.php file.

    4. Open a web browser and manually point it to wp-login.php on the new server. For example, if your new site is at http://www.yourdomainname.com, then type http://www.yourdomainname.com/wp-login.php into your browser’s address bar.

    5. Login as per normal.

    6. Look in your web browser’s address bar to verify that you have, indeed, logged in to the correct server. If this is the case, then in the Admin back-end, navigate to Settings > General and verify that both the address settings are correct. Remember to Save Changes.

    7. Once this has been fixed, edit wp-config.php and either completely remove the line that you added (delete the whole line), comment it out (with //) or change the true value to false if you think it’s likely you will be relocating again.

    Note: When the RELOCATE flag is set to true, the Site URL will be automatically updated to whatever path you are using to access the login screen. This will get the admin section up and running on the new URL, but it will not correct any other part of the setup. Those you will still need to alter manually.

    Important! Leaving the RELOCATE constant in your wp-config.php file is insecure, as it allows an attacker to change your site URL to anything they want in some configurations. Always remove the RELOCATE line from wp-config.php after you’re done.

    Changing the URL directly in the database

    If you know how to access phpMyAdmin on your host, then you can edit these values directly to get you up and running again.

    1. Backup your database and save the copy off-site.
    2. Login to phpMyAdmin.
    3. Click the link to your Databases.
    4. A list of your databases will appear. Choose the one that is your WordPress database.
    5. All the tables in your database will appear on the screen.
    6. From the list, look for wp_optionsNote: The table prefix of wp_ may be different if you changed it when installing.
    7. Click on the small icon indicated as Browse.
    8. A screen will open with a list of the fields within the wp_options table.
    9. Under the field option_name, scroll down and look for siteurl.
    10. Click the Edit Field icon which usually is found at the far left at the beginning of the row.
    11. The Edit Field window will appear.
    12. In the input box for option_value, carefully change the URL information to the new address.
    13. Verify this is correct and click Go to save the information.
    14. You should be returned to your wp_options table.
    15. Look for the home field in the table and click Edit FieldNote There are several pages of tables inside wp_options. Look for the >symbol to page through them.
    16. In the input box for option_value, carefully change the URL information to the new address.
    17. Verify this is correct and click Go to save the information.