Consider this, your current WordPress blog earns decent traffic, but you lay your hands on a much stronger domain in your niche, which will help you reach your traffic goals in a few months as opposed to a few years. The only hitch is you will have to change your web host. How to move or transfer WordPress blog site to another host?
This can be one of the reasons for you to change your host. But you might think moving a WordPress blog will be an alien task for you and give up on it.
Or you do decide for the big switch, after much deliberation, but you might resort to hiring services for the same.
Yes, it is a bit complicated and it might take some time, and you might find it to be an overwhelming process. But with a correct approach, it is possible for you to do it manually yourself.
This step by step migration tutorial is all about breaking it down and helping you go through the process of how to migrate and transfer your WordPress blog site to another host?
These are the six things that you have to do to make the big switch manually:
Migration or not, it is always a good idea to have copies of your works, files, etc. in another location. While moving your host, this is not only a safety measure, it is also a requisite one. Backup of your database can be done using plugins available online. A good practice would be to do it yourself using an FTP program. Connect it to your web host and copy all files to a folder on your computer. It might take some time, especially if you have hosted media files.
If you will use Filezilla, the recommended FTP program, it will hide the .htaccess files for security reasons. You can click on View, and select Show Hidden Files to work around it.
P.S. All your files should be in your blog folder, including images you must have used from external folders. They have to be copied to the new hosting location with the other files. Having them together will prevent broken links on your website.
The next step is to export your existing database for the new server.
- Login to cPanel account of your web server
- Open phpMyAdmin application
- Select the database with your WordPress installation
- Click on Export tab
- Select Quick option under the Export Method section
- Leave the format section as SQL
- Click on Go and save the file wordpress.sql on your desktop
P.S. Make sure your .htaccess file is included, or else your permalinks will fail to work.
Create a database so that your WordPress can work on your new web host. You will import all your SQL data from the above step into this database.
- Login to your new web host with your credentials
- Connect to the cPanel software
- Click MySQL Databases icon
- Create a new database with a new website name, username and password
- Add the new user to the account and grant All Privileges
After the database creation, you will need to edit a wp–config.php file, which is, as the name suggests, a WordPress configuration file. This one will be in the folders where you downloaded all your website files. It controls the access between WordPress and your database. You will need to edit this file for your new database.
- Open the file in the text editor
- Find the line “define(‘DB_NAME’, ‘__’);” and enter your database name on the new host
- Similarly, in the line “define(‘DB_USER’, ‘___’);”, write the username you just made in the new database
- And the third change in the line “define(‘DB_PASSWORD’, ‘*****’);” enter the new password
- Save and close the file
P.S. A copy of the wp–config.php file will be a good decision at this point if your editing doesn’t go as planned.
After setting up the file with the new database, it will have no database tables, until you import your existing information in it.
- Log into phpMyAdmin
- Select your new database
- Click on Import tab from the menu
- Choose File button in the File to Import section
- Select the SQL file you exported on your desktop
- Set the format to SQL, and do not select the Partial Import if you don’t want to skip any code rows
- Click Go
- You will receive a message on the screen once the import is finished
- Connect to your new web host using your FTP program you used for your backup
- Browse to the folder of the website
- A primary directory (only site) will have public_html folder where the files will be uploaded
- Upload your website files on the remote directory with the edited wp–config.php
The last step is to redirect your domain name to a new server. “Nameserver” is what the domain uses to point to a server. All you need to do is log in to the account wherever your domain is held, find out the DNS of your web host (they usually provide you with two), change the nameserver and save it.
Here you go, now you have successfully switched an transferred the web host for your blog site.