How to move a WordPress site to a new host
A WordPress site is made of files and a database, and you can move it to other hosting without bringing it down. This guide explains what gets moved, the three main ways to do it, and how to do it safely.
What to know first
- Database
- The place where WordPress keeps the content: posts, pages, users and settings.
- DNS
- The phone book of the internet: it translates the domain name into the server where the site lives.
What actually gets moved
A WordPress site has two parts. The files: WordPress itself, the theme, the plugins and the uploaded images (the wp-content folder). And the content: the database that holds the posts, the pages and the settings. You move both, and then replace the old address with the new one.
The domain is a separate thing. It does not move with the files, and you change where it points, to the new server, at the end.
Three ways to move
A migration plugin: you install a plugin on the existing site, and it copies the site to the new server. This is the easiest way and it suits most sites.
An export file: a plugin or a tool packs the site into one file, which you upload to the new server. It fits when a migration plugin cannot be installed on the existing site.
A manual move: you copy the files over SFTP, then export and import the database. It gives full control, but you need to know the tools, so it is less suited to beginners.
The safe order
The idea: the old site stays live and unchanged, and you build a copy next to it. Only when the copy works do you connect the domain to it. That way there is always something to go back to.
- Back up the existing site and write down which WordPress and PHP versions it runs on.
- Set up the new site and copy the files and the database to it.
- Check the copy at a temporary address: pages, images, forms, plugins and signing in to the admin.
- Stop updating content on the old site, so no change is left behind.
- Point the domain at the new server (a DNS change), and wait for the change to spread across the network. This can take a few hours.
- Check that the new site answers at the regular address, and keep the old site for a few more days before you cancel it.
How it works with us
You install the Handsome Migrate plugin on the existing site. Its download includes the migration key of your server with us, and "Move to Handsome" appears in the admin menu. Click the move button, leave the page open until the end, and the site is copied to the new server. The old site stays as it is, and live.
When the move ends, the site answers at a temporary address for checking, and you connect the domain in a guided step. The move itself has no extra charge.
The plugin needs WordPress 6.0 or later and PHP 7.4 or later on the existing site, and a network of sites (Multisite) is not supported. In a shop, orders that come in to the old site after the move are not copied, so it is best to leave it as it is until the domain moves. When a plugin cannot be installed, you can also upload an export file.
Try it now
Before you start, open the admin of the existing site and write down the WordPress version and the list of plugins. That makes it easy to check that everything arrived.
If the copy answers at the temporary address, the pages and forms work and signing in to the admin works, you can connect the domain.
If it did not work
- The move stopped in the middle? In most cases it is enough to open the plugin page again and click "Retry".
- The site is large and does not fit? You can make the server larger and try again. If the site page has no tool for changing the server size, write to us for a bigger server.
- Something looks broken in the copy? This is the time to find out. The domain has not moved yet, and the old site keeps working.
Check yourself
Answer in your head first, then open. After all the answers, a star is waiting on the route.
What do you move when you move a WordPress site?
The files (mainly wp-content) and the database. The domain is pointed separately, at the end.
When do you connect the domain to the new server?
Only after the copy has been checked and works at a temporary address.
Common questions
Does the site go offline during the move?
No. The old site keeps working during the copy and the check, and the domain moves at the end. It is best not to update its content from the moment of the copy until the switch.
What happens to the plugins and the theme?
They move with the site. It is worth checking them on the copy before the switch, especially if they are old.
How long does it take for the domain to connect to the new server?
Usually a few hours, because a DNS change has to spread across the network. During that time some visitors may still reach the old site.
Can I move a site that runs a shop?
Yes, but orders that come in to the old site after the move are not copied. We recommend leaving the old site as it is until the domain moves.