White Label Coders  /  Blog  /  How to move a WordPress site to a new domain?

Category: WordPress

How to move a WordPress site to a new domain?

wordpress migration
01.02.2023
5 min read

The day will come when you will need to move your WordPress site to the new domain. For sure, because it includes situations when you need to publish a site developed on the local environment, to the live hosting infrastructure. Moving a simple WordPress site to another domain or hosting is not a very complicated process. However, it must be done in the right way, to ensure all the changes are correctly migrated and no issues arise on the production version.

So how to properly move WordPress site to a new domain or hosting?

The most important thing in WordPress migration: Backup

When moving WordPress site to a new domain start with the backup copy of your website. You can do it manually by exporting the database and downloading files, plug-ins and website theme to your computer and saving them in a separate folder. You can also use WordPress plug-ins (such as Duplicator).

But, regardless of the method you choose, you will need this backup copy to restore your website to the new domain on the new web host. In addition, the backup can save many hours of work if something goes wrong during the WP migration process.

Migrating the WordPress site manually

Moving the site files manually from one domain to another is a simple and reasonable process. You will have to:

  • log to the hosting (having SSH access simplifies things a lot, but an FTP is sufficient),
  • compress the WordPress sites files into a .zip, .tar, or .gz file,
  • download a copy of the WordPress database,
  • replace old URLs in the database with URLs of the new domain using the “Search and Replace” function on the database dump file,
  • transfer and extract WordPress files to the target server,
  • upload the WordPress database (usually via Workbench or phpMyAdmin).

WordPress migration with plugins

If you want to reduce your WordPress sites downtime, and be sure that everything runs smoothly, choose a WordPress migration plug-in. This will easily manage the transfer process.

There are several WordPress migration plug-ins available to help you move WordPress site to a new domain. Let’s talk a little about them:

Duplicator – ultimate WordPress website migration solution

Duplicator is the best WordPress migration plug-in available on the market. It works for many different types of WordPress migration scenarios. What’s more important, you do not need advanced technical knowledge to use it.

Duplicator has a simple step-by-step Wizard to guide you through the WordPress migration process. It starts with creating a backup copy of your WordPress files and downloading it to your computer along with an installer script. Then you upload the script with the backup copy of the WordPress files to the new server or domain. Next run the Migration Wizard, which extracts files and installs the website.

All you have to do is updating the URLs stored in the WordPress database.

UpdraftPlus

UpdraftPlus is one of the best WordPress migration plug-ins with way over 3 million active installation. It allows you to seamlessly create scheduled backups to almost any target service or device, be it Amazon S3, FTP Server or a simple e-mail message.

The premium version of Updraft includes a lot of additional automation tools, including a migration service that allows you to create complete backup copy of your WordPress. Import it to any hosting or domain of your choosing, and migrate the website without a hiccup.

Jetpack – most secure way to migrate your wordpress site?

Jetpack is an advanced WordPress migration plug-in that focuses on improving website’s security with powerful backup functionalities. Jetpack’s Backup module allows you to schedule creation of daily snapshots of your WordPress based website. At any time, you can easily use them to restore your website and to migrate it to a new hosting or domain. User friendly backup, restore and migration wizards makes the process really easy and smooth. Combine that with detailed, step by step documentation and you are home.

All-in-one WP Migration – migrate your WordPress sites for free!

It is a popular WordPress migration plug-in with powerful features that support many operating systems and PHP versions. What makes this one stand out is that it’s completely free and yet it offers most of the features needed for smooth and seamless execution of WordPress site migration process and moving WordPress sites. The plugin has been tested at all major Linux distributions and both Windows and MacOS ecosystems. Current version of this plugin has over 3 million active users.

Migrate Guru

Migrate Guru is a relatively new plugin for WordPress migration that advertises itself as the fastest way to migrate any WordPress website. Developed by BlogVault, it offers full packet of features that allow you to transfer your webpage to new domain or hosting server. Migrate Guru automatically changes URLs, bypasses all of the import and export scripts. It takes care of serialised data of your WordPress. Everything runs automatically with no need of other third-party tools.

However, regardless of the plug-in you choose, you should remember to remove it after the migration process finishes. The unused but active plug-ins can spring a surprise. The unwanted one. Especially if the site is not updated on a regular basis, and a migration plugin leaves open doors to hackers, like it recently happened with Duplicator.

To read more about other WordPress plugins click here.

CI/CD (Continuous Integration /Continuous Delivery)

CI/CD, together with the version control system is mainly used when several people work on the project at the same time. When changes to the website are required frequently. It uses a code repository that allows to upload selected version of the website to the target server, often including automated execution of various tests, to limit the chances any serious bugs will slip into the production version. Therefore, it is typically used to migrate a website from the development environment, through staging up to the live version from one domain/hosting to another.

CI/CD is useful for really large and complicated WordPress websites that require constant changes and maintenance. The good coding practice in the case of CI/CD is to use staging server to test development versions of the website before migrating them to the production version. Development versions are updated from GIT repository with use of Jenkins or similar automation tool.

WordPress migration guide summary:

  • In case of a new website, the safest and really fast way to migrate it to hosting is the manual one.
  • If you are using plug-in to migrate the WordPress website and site files, do not forget to uninstall it after the migration process finishes.
  • CI/CD is a great solution for large projects under development, but is also the most complex one and requires significant effort to initially set it up.
Jakub Jóźwiak

WordPress Developer

Jakub has 8 years of commercial experience in WordPress with PHP – Laravel. He is more of a backend than a frontend developer. Jakub is an incredibly skilled and professional programmer, but also an amazing person. Keeping his deadlines, always ready to work with a smile on his face, and the more difficult projects, the bigger smile he has.

WordPress plugin doesn't work properly? No problem! He will write his own in no time. Website hacked? Give it to Jakub and see the magic happens.

Related Articles
SEE OUR BLOG
Check related articles
WooCommerce
Future is now! Go with WooCommerce & become a leader!

The new and dynamically changing market situation is forcing many companies to redirect a significant part of their activities or even the whole business to the Internet.

Read more
White Label Coders Best B2B Companies in Poland by Clutch
Clutch names White Label Coders as one of the Best B2B Companies in Poland

There are many companies that are investing a lot of time, effort, and money in creating the best websites for their brand.

Read more
WordPress for E-commerce
Can WordPress be used for e-commerce?

What is the success story behind many online businesses? Why do some of them flourish, gaining new customers and expanding year by year, while others just bite the dust?

Read more
Headless WordPress
To have the cake and eat it too - Headless WordPress

WordPress is great for its flexibility and popularity as far as the content creation is concerned.

Read more
WordPress Plugins
What WordPress plugins do I need?

WordPress is not only flexible, but also a full-fledged content management system that can be used to create websites and webshops in a variety of shapes and sizes.

Read more
delighted programmer with glasses using computer
Let’s talk about your WordPress project!

Do you have an exciting strategic project coming up that you would like to talk about?

wp
woo
php
node
nest
js
angular-2