If you find yourself needing to migrate a WordPress website, it may seem like a big undertaking. But sometimes, it's a necessity. People decide to move hosts due to various reasons, such as:
The goal is typically to improve upon the current hosting situation. The final result will lead to a better overall experience for you and your visitors.
Migrating your site is fairly easy once you learn the basics and find the right tools. Anyone should be able to successfully move a WordPress site to a new host by following a few steps.
Migrating a WordPress site begins with a little preparation. Going through these steps will prevent a lot of headaches and potential issues that could grind everything to a halt.
Backing up your website data is a key step in the whole migration process. It creates a copy of your site in case something goes wrong. This preserves all of your data so that if there is a loss or corruption that occurs, you still have your site information.
If you fail to create a backup and something happens, you could lose everything. You would have to start all over with the creation of your website, which is not a task anyone wants to undertake.
You can create a backup manually using a File Transfer Protocol tool. You will need to connect the FTP to your site and download all the files to your computer. To have a full backup of WordPress content, you will also need to use phpMyAdmin to access the site's database and export it to your computer.
Taking both of these steps ensures the process encompasses all aspects of the site:
An easier way to backup is to use plugins in WordPress that will handle the process for you. These include:
To use a migration plugin, go to your WordPress dashboard and find the Plugins tab. Click Add New and search for the plugin you want to use. Click Install Now and Activate.
You may need to adjust the settings to meet your needs and choose where the backup file will go on your computer. You can then click the button to begin the backup process.
You can also use cPanel. To do this, go into the cPanel host under Files and choose Backup Wizard. Choose Back Up and then Full Backup from the options. Finally, click Generate Backup to begin the process. You will need to download the file to your computer once this is complete.
Backing up your site does take time. If you have a larger site, it will take a lot more time. However, this is time well spent because having this copy of your data is invaluable.
Choosing the new host is a big decision that will impact your website moving forward. You want to make this decision based on your needs and not just due to price. Your hosting plan choice will impact the overall website experience, so it must be the right one.
You need to begin by knowing your website needs. Consider the type of content you have and the amount of traffic. Look at the demands of your site on resources.
Also think about your other needs, such as those for technical support or email services. Do not forget about security as well.
As you begin to look at different hosting providers, you want to consider the various packages each one offers. Hosts offer packages with different features, which should help you to find the one that is the best match to your needs.
You will want to look into the following about each host:
You should ensure the hosting server will allow room for the growth of your website by offering upgrade options. The process should be simple and not require you to jump through hoops.
You also want to make sure you understand the terms of service. This document will reveal any fees, limitations, and policies that could impact your site.
It’s also helpful to understand the types of hosting available. Hosting options include:
While there are many choices on the market for hosts, some of the top ones for manual migration include:
Once you make your choice of a new host, the final consideration is to ensure it meets WordPress requirements:
If everything looks good, you can sign up for the new host.
As you begin the process of migrating a WordPress site, you may need to create a temporary domain or subdomain. A temporary domain allows you to view the site and test it. Most hosts will provide this service, and how you create one depends on the specific host.
A subdomain helps you to make your website more specific to users. It allows you to divide your website and target a specific audience, such as desktop or mobile users. You can also use it for regional sites or different product lines. In addition, this provides an alternative option for testing instead of using a temporary domain.
A subdomain looks like this: subdomainname.yourwebsite.com.
You will need to first create it in your hosting dashboard. The specific steps may vary, but they usually involve going under Domains and entering the new subdomain name.
Once you have completed all the preparations to migrate a WordPress site, you are ready to get to the actual moving process.
Migration can occur manually or automatically. Manual requires using FTP and the ability to access databases and modify files. This process is a little more involved:
Automatic occurs with a plug-in or other tool that handles all the work for you. The downside is that this can produce errors and could be trickier for larger websites. However, some hosts will offer free migration tools, which remove the guesswork and streamline the process.
If you want to migrate a WordPress site manually, there are some specific steps you have to follow to ensure everything goes smoothly.
The process begins with exporting your database. To do this, you will need to go into your hosting account. Using cPanel, which is a common choice for hosts, do the following:
If you have a large database, be cautious as they can cause issues during exporting. Some helpful tips to avoid problems include:
Make sure that you are careful throughout this process and do not delete or remove anything without being positive such a change will not remove or change necessary data. Remember, though, you have your backup file, so you can always start over if something does go wrong.
Now, you need to get your WordPress files into the new host server. Follow these steps in cPanel to do this:
You will want to check file and folder permissions during the migration process. As you move data, permissions may change. Typically, using an FTP tool will help prevent this issue. You can go into your cPanel and adjust permissions as needed once you get everything migrated to the new host.
When importing your database to the new host, you also need to adjust your database connection details. You will do this by editing the site's wp-config.php file.
After the download of your files is complete, all the files will be on the new server. You need to go into the root folder and find the wp-config.php file. Right-click and select view/edit.
You will need to update the following lines to include the new database name and username you selected:
These lines point to the old host, so if you try to visit your website, it won't be able to come up. You are no longer on the old host, and your files don't know how to send visitors to the newly hosted site. By making the changes to include the new database and user names, you are helping with that redirect.
You have gotten through all the complicated steps in the WP migration process, but you aren't quite finished. To finalize the process, you need to check a few more details.
You will need to ensure your permalinks are in good shape and test out the other aspects of the site to be sure everything is working properly.
In WordPress, go to settings and choose Permalinks. Check over everything to make sure it looks correct, and click Save. This should update the permalinks and ensure they continue to work.
You will need to walk through your whole website page by page and check every element. You want to ensure plugins and links work. Check for images that are not showing up properly and videos that aren't playing right. Use all interactive elements to be sure they still function correctly. Finally, skim over the site to be sure everything looks good and works as it should.
If you find problems, you will need to use your tools to make adjustments. If there is something you cannot fix or a fatal error, you may need to grab your backup files and start the migration process over.
Now, you want to be sure your domain is pointing to the right host. Your Domain Name Server or DNS is what takes your URL and converts it to an IP address that gets your visitors to your website. It has to go to the right place or else nobody will be able to find your site.
You must make sure the DNS knows that you moved. You can make this happen through your domain provider. General steps include:
The process can take about seven days in total due to wait times to get authorization codes and the actual transfer time.
Once you have taken all the steps to migrate a WordPress site, you will need to do some final checks to ensure your website is working as it should.
An important step is to set up a redirect that will ensure people visiting your old website will make it to the new website. You can do this with a permanent 301 redirect. A plug-in can also assist with this to ensure every page of your old site will redirect to the new website.
You want to update all your Google Analytics as well. Make sure you also let others know you've moved your website.
Do a final walkthrough, page by page, to ensure everything is working properly and looks good.
You also want to protect your SEO. Ensure all metadata, titles, and HTML markup are in place.
Take this as an opportunity to look at performance, too. Remove pages that aren't doing good or change them if needed. Don't remove content without considering the impact. Removing anything could impact your SEO. Get help from an outside source to ensure your SEO is on track.
While the process of migrating a WordPress site may seem complex. It really breaks down to backing up your data, transferring it, and then making sure everything looks great. The key to success is taking your time.
Also, recognizing migration can be tricky sometimes. Instead of stressing over any issues that may come up, work with elk Marketing. We can assist you with any struggles and help to make the migration process easy. Learn more about our services today.