Menu
iThemes
WordPress Security, Backups & Maintenance
  • Products
    • iThemes Security Pro
    • BackupBuddy
    • iThemes Sync
    • Why buy from iThemes?
  • Bundles
    • Essentials Bundle
    • Plugin Suite
    • WordPress Web Designer’s Toolkit
    • Customer Spotlights
  • Resources
    • Blog
    • WordPress 101 Tutorials
    • WordPress Ebooks
    • Weekly WordPress Vulnerability Report
    • The Ultimate Guide to Starting a Web Design Business
  • Training
    • Upcoming Webinars
    • Free Webinar Library
    • Premium Courses
    • Become a Member
    • Member Login
  • Support
    • Documentation
    • Get Help
    • Product Updates
    • Upgrade Policy
    • Contact
    • Our Mission: Make People’s Lives Awesome
  • Log In
WordPress News and Updates from iThemes
Categories
  • Product Updates
  • WordPress Backup
  • WordPress Block Editor
  • WordPress Ecommerce
  • WordPress for Freelancers
  • WordPress Security
  • WordPress Tutorials
  • WPprosper

How to Move a WordPress Website to a New Web Host or Server

Written by Kristen Wright on May 2, 2022

Last Updated on January 6, 2023

Need to move a WordPress website to a new host or server? The good news is that it is possible to move an entire WordPress website to a different web host or server in just a few steps. Even better news? You won’t have to rebuild the site or worry about manually migrating anything.

In this guide, we’ll cover a step-by-step guide for how to move a WordPress site or blog to a different server or hosting company.

In this guide
  • 3 Common Reasons to Move a WordPress Site to a New Host or Server
  • Before You Begin: Preparing to Move a WordPress Site
    • Update DNS or Nameservers For Domain To Point to New Web Host/Server Location
    • Access & Tools Needed
  • Steps to Move a WordPress Site to a New Server or Web Host
    • 1. Install the BackupBuddy plugin on your WordPress site.
    • 2. Make a Complete Backup with BackupBuddy.
    • 3. Download the ImportBuddy file
    • 4. Create a New Database and Database User from cPanel
    • 5. Upload the Backup Zip File & ImportBuddy File to the New Directory
    • 6. Walk through the ImportBuddy Steps to Finish the Move
  • Move an Entire WordPress Site Today with BackupBuddy
  • Get BackupBuddy, the Original 3-in-1 WordPress Backup Plugin

3 Common Reasons to Move a WordPress Site to a New Host or Server

Here are a few common reasons why you may need to move a website to a new domain.

  1. You need a better web host – Maybe the web hosting company you’ve used no longer measures up to your needs for speed, reliability, cost, security or storage. It’s time to move on!
  2. You need to move a development site to the live server – Website developers often develop on a separate server or locally until a site design (or redesign) is complete. The dev site will need to be pushed to the live server.
  3. Ownership of a website has changed – Maybe you sold your company or blog and the new owner has different plans for where the website will be hosted. Or maybe you’re handing off a website you built for a client to their control.
move WordPress to new server

Before You Begin: Preparing to Move a WordPress Site

For the purpose of this tutorial, we’ll be moving a WordPress site from one server to another. The domain stays the same. (Need to move WordPress to a new domain? We have a tutorial specific to that scenario, too.)

Note: This process does require a bit of technical knowledge regarding WordPress website file structure and MySQL databases, but this tutorial walks through what you need to know.

Update DNS or Nameservers For Domain To Point to New Web Host/Server Location

If you’re keeping the same domain name for the website you’ll be moving, you’ll likely need to make sure you’ve updated the nameservers or DNS record for your domain name to point to the new host or server.

Note: Your web host or domain name registrar should have information on how to complete this process. For example, here’s more on Managing Your DNS from Liquidweb and an article from Nexcess on how to point your domain name.

Access & Tools Needed

To get ready to move your website to a new domain, you’ll need access to your website’s files, as well as a few tools to make the process quick and easy.

  • Access to the files on your website’s server – Usually, this just involves admin access to the web hosting account of your existing website, with cPanel or File Management access. File access can also be accomplished with sFTP/FTP access to your website’s server using a text/code editing tool with file manager options.
  • Access to the web hosting account of your web host/server – Where will you be hosting your website? You’ll need the same file-level access to that web hosting account (it may be the same as your existing website if you added the new domain to your existing web hosting account).
  • Access to create a new MySQL database for your new server/host
  • BackupBuddy, the WordPress backup plugin – This post will walk through the entire process of moving a WordPress site from one domain to another using the BackupBuddy’s Manual Migration method. Using the BackupBuddy plugin is the quickest way to move a WordPress site.
  • The ImportBuddy file/script – BackupBuddy comes with a download for the ImportBuddy file that will help you complete the move of your website to a new domain.

Ready to get started? Let’s go.

Steps to Move a WordPress Site to a New Server or Web Host

Here are the steps you need to walk through to move your site to the new domain or URL.

1. Install the BackupBuddy plugin on your WordPress site.

After activation, run through the Quick Setup to enable the most important features.

BackupBuddy Quick Wizard

2. Make a Complete Backup with BackupBuddy.

You’ll need to make a Complete backup of the site you wish to move. A Complete Backup is one of the 5 types of WordPress backups you can make with BackupBuddy, and covers backing up everything in your WordPress installation.

From your WordPress admin dashboard, visit the BackupBuddy > Backups page. Click the Complete Backup button.

backupbuddy complete backup

After the backup completes, download the Backup zip file. After the backup completes, download the zip file and save it to your computer. Do not unzip this file. 

download backup file

3. Download the ImportBuddy file

Next, you’ll need to navigate back to the BackupBuddy > Backups menu to download the importbuddy.php file. You’ll see the download option from the top right ImportBuddy menu.

download importbuddy

Confirm your ImportBuddy password. In the window that pops up, enter a new password or leave blank to use the ImportBuddy password you set up when you first installed BackupBuddy. This password is important because it locks the ImportBuddy script from unauthorized access. Click OK and the download will begin.

importbuddy password

4. Create a New Database and Database User from cPanel

The next part of the process of moving a WordPress site to a new host or sever requires you to have access to the cPanel of the hosting account where the site will be hosted.

A WordPress site is essentially “a pretty face on a database” so that’s why we’re creating a new database here. This database will be connected to the new version of the “moved” WordPress site. You’ll want to copy the database name, username and password you create in this section to use during the ImportBuddy migration process later.

Log in to your new hosting account to access cPanel. Note: your host may use a different hosting backend service other than cPanel, but the process will be similar.

mysql database wizard cpanel

From cPanel, locate the MySQL Database Wizard icon in the list and click on it. The MySQL Database Wizard will guide you through the next steps. First, add the name of the new database.  Click “Next Step.”

create MySQL database

Next, add a database user. Use the password generator to create a strong password. Don’t forget to copy the username and password you create here to a secure location using a service like 1Password. Click “Create User.”

MySQL Database Uer Creation

The next screen will add the new user to the database. Click the “All Privileges” checkbox and then click “Next Step.”

MySQL database user privileges

The final screen confirms the creation of the new database and the new user. Confirm that you’ve copied the database name, the database user and password to a secure location.

MySQL database wizard complete

5. Upload the Backup Zip File & ImportBuddy File to the New Directory

In this next section, we’ll be uploading the backup zip file and the ImportBuddy file into the directory of the new/moved site. Basically, a directory is where your WordPress site “lives” on your server. All the files that run the WordPress site are located within this folder (directory).

For this next step, you can use FTP access to the server or the File Manager within your cPanel. You just need to have access to upload (or delete) files on your server.

cPanel File manager

Open the directory (folder) of the final location of the WordPress site. Note: Most hosting providers will automatically set up and name the directory when you add the domain name to your hosting account. Your directories will be located in the /public_html directory.

web host file directory

IMPORTANT: This directory will need to be empty prior to uploading the backup zip file and the importbuddy.php file. If there are existing files in this directory, go ahead and delete them so you have an empty folder.

empty web directory

Upload the importbuddy.php file and the backup zip file to this empty directory. You can use the Upload function within the File Manager here.

upload to web directory

After you upload the importbuddy.php file and the backup zip file, the directory should look like this.

files in web directory

6. Walk through the ImportBuddy Steps to Finish the Move

This final series of steps will guide you through using ImportBuddy to finish up the site move.

Navigate to the site URL/importbuddy.php. For our example site move, we’d visit this link in your browser:

http://examplesite.com/importbuddy.php

After this page loads, you’ll see the first ImportBuddy screen. Enter the password you created back in step 4 of this tutorial (or the password you set when you first set up BackupBuddy). Click the “Authenticate” button.

importbuddy-step-1

For Step 1 of the ImportBuddy process, verify that the backup file is selected (it will be by default). Click the “Restore Backup” button.

importbuddy-step-1-select-backup

On the next page, enter your database settings under the “New Database” section. This will be the database name, database user and database password you created in steps 7-10.  Your page should look something like this. Click the “Next Step” button.

importbuddy-database-settings
  Old Database Database New Database Explanation
Database Server localhost localhost In almost all cases, this field will be “localhost.” This is the address to the mySQL server where your database will be stored. The location of your mySQL server will be provided to you by your host if it differs from “localhost.”
Database Name olddomain_phs clientsite_newdatabase This is the name of the new database we created in step 7.
Database User olddomain_user clientsite_newuser This is the name of the new user we created in step 8.
Database Password *************** *************** This is the password for the user you created in step 8.
Database Prefix wp_ wp_ This is the prefix given to all tables in the database. For the purposes of this tutorial, we’ll leave it at wp_ (since we’re moving a site to new domain).

ImportBuddy will finalize the migration and ask you to confirm the New URL. Click the “Next Step” button.

importbuddy site URL settings

Verify the site is working by clicking on the site URL. Click the “Finish Cleanup” button. 

That’s it! Your new WordPress site will be ready to go on the new server or web host.

Move an Entire WordPress Site Today with BackupBuddy

Get BackupBuddy today, the original 3-in-1 WordPress backup plugin. Easily backup, restore and move a WordPress site to a new host or server … in one plugin!

Get BackupBuddy, the Original 3-in-1 WordPress Backup Plugin

Easily backup, restore and move a WordPress site to a new host or server … in one easy to use plugin! Backup your database, entire WordPress installation, just your plugins, themes, or Media Library files … and set up automatic backup schedules.

Get BackupBuddy Now

Kristen Wright
Kristen Wright

Kristen has been writing WordPress tutorials since 2011. Kristen also enjoys journaling, hiking and camping, step aerobics, cooking, and daily adventures with her family, hoping to live a more present life.

Share via:

  • Facebook
  • Twitter
  • LinkedIn
  • More
Other related posts
WordPress White Screen of Death
The WordPress White Screen of Death: A Guide to Recovery

What is a Website Firewall? WAFs and Other Firewalls Explained

BackupBuddy University: 7 Types of Backup Email Notifications

BackupBuddy University: Stash Live

Respond

Click here to cancel reply.

Get updates on new themes & plugins plus special discounts

About iThemes

  • The Team
  • Contact Us
  • Website Accessibility Statement
  • Sitemap

Resources

  • Blog
  • Documentation
  • WordPress Tutorials
  • Free WordPress Ebooks
  • Free Webinar Library
  • Free Upcoming Webinars
  • iThemes Training
  • Affiliates

Customers

  • Member Panel Login
  • Support
  • FAQs
  • Upgrade Policy
  • Licensing
  • Terms and Conditions
  • Refund Policy

Top Products

  • BackupBuddy
  • iThemes Security Pro
  • iThemes Sync
  • Restrict Content Pro
  • WPComplete
  • WordPress Plugins
  • Content Upgrades
  • WordPress Landing Page Plugin
  • BackupBuddy Stash

iThemes Media LLC Copyright © 2023 All rights reserved | Privacy Policy

© 2022 All Rights Reserved.

Visit StellarWP Visit Nexcess
Share via
Facebook
Twitter
LinkedIn
Mix
Email
Print
Copy Link
Powered by Social Snap
Copy link
CopyCopied
Powered by Social Snap