I won’t go too in-depth here, but I will describe the steps you need to take to move a WordPress website to a different host.
- Download all of the site files from the old host
- Export the entire database WordPress is using. If you’re not sure how to do that, there are instructions here.
- If there are existing files on the new host, back them up by downloading them. Do the same for any databases on the new host.
- Upload the site files from the old host to the new one.
- Create a new database on the new host. Each host is different, but you’ll have to create a database, a database user, and then give the database user all privileges on the new database.
- Import the database from the old host to the new database.
- Change the
wp-config.phpfile info to the new database name, host, username, and password.
Some Things to Consider:
- Most hosts keep the database host as
localhostbut not all of them. If you’re not sure what your host is, you should contact the new host’s support.
- This is just moving WordPress to a new sever; I assume you’ve already pointed the domain. If you’re changing domains, you will also have to change all of the domain references in the WordPress database, most notably in the
wp_optionstable (there are two references there). If you don’t change the
wp_optionstable, your site will not work. The best way to change all of the references (most of which being in the
poststable) is probably to do a Find/Replace on the
.sqlfile in your favorite text editor after you complete step 2.
- If you’re moving a WordPress MU/Multisite install, you will also have to configure the sever to handle subdomains. The codex has instructions on how to do that here.