These days, WordPress site relocation is often automated by hosting providers and numerous free and non-free plugins. These automated systems only migrate assets, they are database and image migration processes. SEO migration tasks like URL mapping and redirect setup are not performed by hosting providers and these automated tools. If you rely on these systems, there is a very good chance that you will lose all traffic after the migration.
Migrating a WordPress website or blog to a different domain is easier than you think. Just follow this guide and you will be done in minutes. With small and medium-sized websites, there is no need to seek help from an SEO agency. This is highly recommended when migrating portals with thousands or millions of pages that generate significant traffic.
Of course, migrating a website that is not generating a profit to WordPress is one thing, migrating a website that supports families or maybe an entire company is a completely different thing.
An incorrectly adapted migration can lead to a loss of ranking and indexing in search engines, which leads to considerable losses in organic views and thus to fewer conversions.
You may need to migrate to a new hosting while keeping the same domain, or change both domains and hosting to one WordPress site. Now I’m going to explain how to move a WordPress site from one domain to another. That said, we will see the procedure for SEO safe domain change.
How to migrate WordPress from one domain to other
1. Make a local copy of the site using FTP
If you are using any FTP client, download a full copy of the website to your PC, back up the / www/folder or the root directory. This depends on the type of hosting used.
In practice, you need to save the site folder locally which contains the system folders “wp-admin”, “wp-content”, “wp-includes” and all files uploaded to the site such as images and attachments.
2. Download the MySQL database backup
Download the MySQL database backup via the phpMyAdmin control panel or with any database administration plug-in (e.g. WP-DBManager). As an alternative to phpMyAdmin or the plug-in for WordPress, there is also client software that you run on your PC or Mac and that allows you to connect to the SQL server in order to change, upload or download the database.
3. Set up the new hosting
Register the new domain, enable hosting (Linux, Ubuntu), PHP (possibly 7.2 or newer versions), and the MySQL database. Save all login details:
FTP user and password
Name of the MySQL database
MySQL database host
The best-known hosting services are predisposed to the most popular CMS. Buy the most suitable package for the traffic you expect from the website.
At this point, the platform should be ready to move WordPress to the new domain.
4. Edit the wp-config.php file
Now you need to change the settings that you used for the old site, in particular, you need to update the location and access information of the new database. With a text editor, open the wp-config.php file that you can find in the main folder of the website you just downloaded via FTP.
5. Edit the MySQL database *
This step is the most delicate and needs to be done very carefully. You can follow alternative routes. If you need to migrate from one hosting to another without changing the domain, this replacement is not necessary. Upload the site to the new server via FTP and the MySQL database, then change the DNS pointing data.
6. Upload the site via FTP
In order to transfer WordPress, the CMS does not have to be installed on the new hosting. Connect to the new server via FTP, find the root directory and upload any websites previously downloaded to your PC (local folder) to the remote folder.
7. Import the WordPress database to the new hosting platform
Log in to the phpMyAdmin control panel of the new SQL server (login details are usually emailed after purchasing the service). The active databases on the server are listed in the left column of phpMyAdmin. Click the database that you want to use for selection. The database should be empty. If you are using an old database, select all tables and delete S.