Are you making plans to transfer your WordPress website to a new web hosting corporate or a other server? The largest chance when switching internet web hosting or migrating a web site to a new server is knowledge loss and downtime.
Both of those could make your web site briefly inaccessible to customers and serps which can lead to lack of gross sales and seek engine ratings.
In this step-by-step instructional, we can display you the way to safely migrate your WordPress website to a new host with none downtime.
We’ll additionally resolution essentially the most ceaselessly requested questions on shifting a WordPress website to new web hosting supplier, so you’ll steer clear of making some commonplace errors.
Important: Before we begin, we wish you to know that a lot of WordPress web hosting firms be offering a loose migration carrier. It will not be indexed on their web site, so all you could have to do is ask. Usually it’s loose, however some would possibly fee a small rate.
Having that mentioned, let’s take a take a look at the stairs we’ll quilt to transfer WordPress to a new web hosting server (with none downtime).
- Choose a new WordPress host
- Setup the Duplicator Plugin for Easy Migration
- Import your WordPress website to the brand new host
- Change the Hosts document to save you downtime
- Create a MySQL database to your new host
- Run Duplicator web site migration script
- Updating your area title server
- FAQs about shifting WordPress to new host
Ready? Let’s get began.
Step 1: Choose Your New WordPress Host
If you might be caught with a gradual internet host even after optimizing WordPress velocity and function, then it’s time to transfer your WordPress website to a new host that may take care of your rising visitors.
When on the lookout for a new WordPress web hosting supplier, it’s essential to select moderately, so that you don’t have to transfer once more any time quickly.
Here’s who we advise:
- For dependable shared web hosting, we advise going with Bluehost. They’re formally really useful via WordPress.org. Using our Bluehost coupon, WPBeginner customers get 60% off and a loose area title.
- If you’re on the lookout for cloud web hosting or location-specific suppliers, then we advise you take a look at Siteground. They have knowledge facilities throughout Three other continents.
- If you’re on the lookout for controlled WordPress web hosting, then we advise you take a look at WP Engine. They are the most efficient and maximum well known supplier within the business.
After purchasing your new web hosting, do NOT set up WordPress. We’ll do this in a later step.
For now, your new internet web hosting account must be utterly empty with out a recordsdata or folders on your primary listing.
Step 2: Setup Duplicator for Easy Migration
The very first thing you want to do is set up and turn on the loose Duplicator plugin at the web site that you need to transfer. For extra main points, see our step-by-step information on how to set up a WordPress plugin.
Duplicator is a loose plugin that we extremely suggest. You too can use it to transfer your web site to a new area title with out shedding search engine marketing.
However, on this article, we can stroll you via how to use it to migrate your WordPress website from one host to some other with 0 downtime.
Once you could have put in and activated Duplicator, cross to the Duplicator » Packages web page on your WordPress admin house.
Next, you want to click on the ‘Create New’ button within the best correct nook.
After that, click on the Next button and apply the stairs to create your bundle.
Make certain that your scan effects take a look at (the whole lot must say “Good”), after which click on the Build button.
The procedure would possibly take a number of mins to whole, so depart the tab open because the plugin does its process.
Once the method is whole, you’ll see obtain choices for Installer and the Archive bundle. You want to click on at the ‘One click on obtain’ hyperlink to obtain each recordsdata.
The archive document is a reproduction of your entire web site, and the installer document will automate the set up procedure for you.
Step 3: Import Your WordPress Site to the New Host
Now that you’ve downloaded each the archive and installer recordsdata, your next step is to add them to your new internet host.
You can do that via connecting to your new internet host the use of FTP.
If you’ve by no means executed this sooner than, take a look at our novice’s information to importing recordsdata by the use of FTP to WordPress.
Normally, you might input your web site’s area title as host when connecting your FTP consumer.
However, since your area title continues to be pointing to your previous host, you’ll want to attach via coming into your server’s IP cope with or server hostname. You can to find this data out of your new web hosting account’s cPanel dashboard.
If you might be not able to to find this data, then you’ll ask for improve at your new internet web hosting corporate, and they’re going to allow you to out.
Using the FTP consumer, you want to add each installer.php document and your archive .zip document to the foundation listing of your web site.
This is most often
Again, should you don’t seem to be certain, then ask your internet web hosting corporate.
Make certain that your root listing is totally empty. Some internet web hosting firms routinely set up WordPress whilst you join.
If you could have WordPress put in on your root listing, then you want to delete WordPress first.
Once executed, you want to add each the archive zip document and installer.php document to your website’s root listing.
Step 4: Change The Hosts File to Prevent Downtime
Once you’ve uploaded each recordsdata to your new host, you want to get entry to the installer.php document in a browser.
Normally, this document will also be accessed the use of a URL like this:
However, this URL will take you to your previous internet host, and you’re going to get a 404 error. This is as a result of your area title continues to be pointing to your previous internet host.
Normally, different tutorials may let you know to trade your area nameservers and level it to your new web hosting corporate, however that’s incorrect.
If you do that now, then your guests will see a damaged web site as you migrate it.
We’ll display you the way you’ll get entry to your new website briefly to your pc, with out affecting your previous website.
This is completed with a hosts document to your pc.
The hosts document can be utilized to map domains to particular IP addresses. In different phrases, it allows you to trick your pc in considering that the web site is moved although it’s now not.
Let’s take a take a look at how to upload an access on your area title within the hosts document, in order that it issues to your new web hosting corporate.
Making those adjustments will permit you to get entry to the recordsdata to your new host the use of your personal area title, whilst the remainder of the sector will nonetheless be gaining access to your website from the previous host. This guarantees 100% uptime.
The very first thing you want to do is locate the IP cope with of your new internet web hosting server. To to find this, you want to log into your cPanel dashboard and click on on make bigger stats hyperlink within the left-hand sidebar. Your server’s cope with shall be indexed as Shared IP Address.
On some internet web hosting firms, you’re going to to find this data beneath ‘Account Information’ heading.
In your next step, Windows customers want to cross to Programs » All Programs » Accessories, right-click on Notepad and choose Run as Administrator.
A Windows UAC recommended will seem, and you want to click on on Yes to release Notepad with administrator privileges.
On the Notepad display screen, cross to File » Open after which navigate to the
C:WindowsMachine32driversetc folder. From this folder, choose hosts document and open it.
If you’re the use of Mac, then you want to open the Terminal app and input this command to edit hosts document:
sudo nano /non-public/and many others/hosts
For each Windows and Mac customers, on the backside of the hosts document, you want to input the IP cope with you copied after which input your area title. Like this:
Make certain that you just substitute the IP cope with with the only you copied from cPanel, and instance.com with your personal area title.
Once you’re executed, save your adjustments.
You can now get entry to your recordsdata at the new host the use of your area title to your pc.
Important: Don’t put out of your mind to undo the adjustments you made to hosts document after getting completed the migration (step 6).
Step 5: Creating MySQL Database on Your New Host
Before we run the installer at the new host, you’re going to want to create a MySQL database to your new web hosting account. If you could have already created a MySQL database, then you’ll leap to your next step.
Creating a Database in cPanel
Go to your new web hosting account’s cPanel dashboard, scroll down to Databases segment and click on on MySQL databases icon.
You will see a box to create a new database. Enter a title on your database, and click on “Create Database” button.
After developing the MySQL database, you want to scroll down to the MySQL Users segment.
Next, supply a username and password on your new consumer and click on at the ‘Create a consumer’ button.
After that, you want to upload this consumer to your database. This will give the username you simply created, all of the permissions to paintings on that database.
You can do that via scrolling down to ‘Add User to a Database’ segment. Simply choose the database consumer you constructed from the dropdown menu subsequent to consumer, then choose database, and click on at the upload button.
Your database is now able to be used with WordPress. Be certain to make be aware of the database title, username, and password. You’ll want that data in your next step.
Step 6: Begin the Duplicator Migration Process
Now we’re able to run the installer. Navigate to the next cope with on your browser window, changing instance.com together with your area title:
The installer will run a few checks and can display you ‘Pass’ subsequent to archive and validation checks.
You want to test the phrases & stipulations checkbox and proceed via clicking at the Next button.
Now, you’re going to be requested to input your MySQL host, database title, username, and password.
Your host will be localhost. After that, you’re going to input the main points of the database you created within the earlier step.
You can click on at the ‘Test Database’ button to remember to entered the proper data.
If Duplicator is ready to attach, then you’re going to see a string beginning with Pass. Otherwise, you’re going to see the database connection error main points.
Click at the subsequent button to proceed.
Duplicator will now import your WordPress database from the archive zip into your new database.
Next, it is going to ask you to replace website URL or Path. Since you don’t seem to be converting domains, you DON’T want to trade the rest right here.
Simply click on at the subsequent button to proceed.
Duplicator will run the overall steps and can display you the login button.
You can now login to your WordPress website at the new host to make certain that the whole lot is operating as anticipated.
Step 7: Update Your Domain Name Servers (DNS)
At this level, you’ve created a whole reproduction of your WordPress database and recordsdata to your new web hosting server, however your area nonetheless issues to your previous internet web hosting account.
To replace your area, you want to transfer your DNS nameservers. This guarantees that your customers are taken to the brand new location of your web site once they kind your area into their browsers.
If you registered your area together with your web hosting supplier, then it’s highest to switch the area to a new host. If you used a area registrar like Domain.com, GoDaddy, and many others, then you want to replace your nameservers.
You will want the DNS nameserver data out of your new internet host. This is most often a couple of URLs that appear to be this:
For the sake of this information, we can be appearing you the way to trade DNS nameservers with GoDaddy.
Depending to your area registrar or internet host, the screenshots would possibly glance other. However, the elemental idea is similar.
You want to search for area control house after which search for nameservers. If you want help with updating your nameservers, then you’ll ask your internet web hosting corporate.
For GoDaddy, you want to login to your GoDaddy account after which click on on Domains.
After that, you want to click on at the Manage button subsequent to the area title you need to trade.
Under the ‘Additional Settings’ segment, you’re going to want to click on on ‘Manage DNS’ to proceed.
Next, you want to scroll down to the Nameservers segment and click on at the trade button.
First, you’re going to want to transfer the nameserver kind dropdown from ‘Default’ to ‘Custom’. After that, you’ll fill within the your new web hosting supplier’s data beneath Nameservers.
Don’t put out of your mind to click on at the save button to retailer your adjustments.
You have effectively modified the nameservers to your area. DNS adjustments can take 4 – 48 hours to propagate for all customers.
Since you could have the similar content material to your previous host and the brand new host, your customers wouldn’t see any distinction. Your WordPress migration shall be seamless with completely no downtime.
To be at the protected aspect, we advise that you just wait to cancel your previous web hosting account till 7 days after your migration.
Frequently Asked Questions
Here are a few questions lots of our customers ask whilst shifting WordPress from one host to some other.
1. Can I signup for the brand new web hosting account with out registering a area title?
Yes, you’ll completely signup for a web hosting account with out registering a area title.
Domain title and web hosting are two other services and products, and also you don’t essentially want to sign up a area title when signing up for brand new host. For extra main points see our information at the distinction between area title and internet web hosting.
Some web hosting suppliers will ask you to choose a area title as step one when buying web hosting. They can even permit you to input a area title should you already were given one.
2. Do I want to switch my area title to the brand new host?
No, you don’t want to switch your area title to the brand new host. However, shifting your area title to your new web hosting will make it more uncomplicated to renew and arrange beneath the similar dashboard as your new web hosting account.
For extra in this subject, see our final information on domains and the way do they paintings.
3. How do I repair error setting up database connection error in Duplicator?
If you might be seeing an error connecting to the database or database connection error in Duplicator, then the possibly explanation why for that is that you just entered improper data on your database connection.
Make certain that your database title, MySQL username, and password are proper. Some internet web hosting firms don’t use localhost because the host for his or her MySQL servers. If that is the case, then you’re going to want to ask your internet host’s improve body of workers to come up with the proper data.
4. How do I test if my web site is loading from the brand new host?
There are a number of on-line equipment that let you to see who’s web hosting a web site. After you could have transferred your web site to the brand new host, you’ll use any of those equipment, and they’re going to display you the title of the internet web hosting corporate web hosting your web site.
If it hasn’t been lengthy because you migrated your web site and made adjustments to your area title server (DNS), then chances are high that that your website would possibly nonetheless load out of your previous host. Domain title adjustments can take in to 48 hours to totally propagate.
5. Do I want to delete any recordsdata or knowledge from previous host?
When switching web hosting firms, we advise that you just stay your previous web site for a minimum of a week. After that, you’ll delete recordsdata out of your previous internet host. If you might be canceling your account, then your internet web hosting supplier will delete all of your knowledge in accordance to their coverage.
6. How lengthy must I stay my account lively at the previous host?
Once you could have migrated your web site to the brand new host, and should you don’t have another internet sites hosted together with your previous internet host, then you’ll cancel your previous internet web hosting account.
However, in some instances, you will have already paid them for once a year web hosting. You must test their refund coverage to see if you’re eligible for any refund upon cancellation.
7. How do I transfer a WordPress website with SSL/HTTPs?
You will want to set up SSL certificates to your new web hosting supplier. After that, you’ll apply the similar steps discussed above. Just just remember to use HTTPs within the URLs, like https://instance.com
8. Bonus: Free Site Migration via Your New Host
If you’re having a look to transfer your internet web hosting, however the steps above sound too sophisticated, then you’ll select the next suppliers, and they’re going to migrate your web site for you.
SiteFlooring, InMovement Hosting, and WP Engine be offering loose web site migration for WPBeginner customers.
We hope that this step-by-step information helped you progress WordPress to your new host with out a downtime in any way. If you return throughout any problems together with your WordPress migration, then take a look at our information on the commonest WordPress mistakes and the way to repair them.
If you really liked this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You too can to find us on Twitter and Facebook.