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
50 WordPress optimization methods
50 Ways on how to optimise your WordPress based website

Over 60 million people have chosen to base their businesses on WordPress. This success isn’t determined by the system itself, rather it’s the way the websites are created, in addition to their maintenance and optimization.

Read more
What is wrong with WordPress these days
What is wrong with WordPress these days?

The right Content Management System is critical for success or defeat of a website. The most popular CMS today is, of course, WordPress. It's not only free and flexible, but also easy to install.

Read more
Gutenberg and ACF
Will Gutenberg Blocks and ACF speed up your WordPress-based website?

Will Gutenberg Blocks and ACF speed up your WordPress-based website? WordPress is a good software for creating less and more complex websites. But every type of webpage has some specific requirements and needs adjustments so that the plain WordPress meets them.

Read more
Project backlog optimization
How to optimize project backlog. The benefits of backlog refinement.

In the world of project management, using Backlog Management is an efficient way to organize and prioritize your software team’s tasks.

Read more
about Core Web Vitals
Everything you should know about Core Web Vitals

Performance and security of WordPress projects - how to plan a secure and Core Web Vitals compatible project?

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