How To Migrate Woocommerce To New Host

How To Articles

Today I want to share my personal experience and knowledge on how to migrate your WooCommerce website to a new host. It can be a daunting process, but with the right steps and guidance, it can be a smooth transition. So, let’s dive deep into the details!

1. Backup Your WooCommerce Website

Before you start the migration process, it’s crucial to create a backup of your entire website. This ensures that you have a copy of your data in case anything goes wrong during the migration. You can use a plugin like UpdraftPlus or manually backup your files and database.

2. Choose a New Host

Research and choose a reliable web hosting provider that meets your requirements. Consider factors like server performance, uptime, customer support, and pricing. Once you’ve made your decision, sign up for a hosting account and get the necessary details like FTP credentials and database access.

3. Move Your Files

Connect to your old host via FTP and download all your website files to your local computer. Next, connect to your new host via FTP and upload the files to the correct directory. This step ensures that all your website files are transferred to the new host.

4. Export and Import Your Database

Export your WooCommerce website’s database from the old host using phpMyAdmin or a similar tool. Save the exported SQL file to your local computer. Then, create a new database on your new host and import the SQL file into it. Make sure to update the database credentials in your WooCommerce configuration file to match the new host.

5. Update WordPress Settings

Now that your files and database are on the new host, you need to update your WordPress settings to reflect the changes. Access your website’s wp-config.php file and update the database name, username, password, and host details to match the new host. Save the file and upload it back to the server.

6. Test Your Website

Before notifying your customers about the migration, it’s essential to thoroughly test your website on the new host. Check if all your pages, products, images, and other content are working correctly. Test the purchase process and any custom functionality to ensure everything is functioning as expected.

7. Update DNS Settings

Once you are confident that your website is working flawlessly on the new host, it’s time to update your DNS settings. Contact your domain registrar and change the domain’s nameservers to point to the nameservers provided by your new hosting provider. This step may take some time to propagate, so be patient.


As you can see, migrating your WooCommerce website to a new host requires careful planning and execution. By backing up your data, choosing a reliable host, moving your files, exporting/importing your database, updating WordPress settings, testing thoroughly, and updating DNS settings, you can successfully migrate your website without any major issues. Remember to double-check everything and seek assistance from your new hosting provider if needed. Good luck with your migration!