How to Migrate a WordPress Site to a New Domain

If you are migrating the site and keeping the same domain name all you have to do is back up the database, and copy all the wordpress files over to the new server.  If you are changning domain names before you do anything you have to go into the wordpress settings and change the URL so that it updates all the links in the site.

Steps:

  1. Log into the wordpress admin dashboard, click on settings, and update both the “wordpress URL” and the “site URL” with the new domain name. Ex: www.clintlyon.com
  2. Back up the database either using PHPmyadmin or from a command line type “mysqldump -u -p wordpress > backup.sql”      Where wordpress is the name of the database and backup.sql is the name of the output file.
  3. On the new hosting server you need to execute the backup.sql file on the database server.  You will need to know the name of the previous database and either create a new database with the same name, or go into the wp-config.php file and change the database reference with the new database name.  You can execute the backup.sql file with either phpmyadmin or a command line.
  4. Create a new user for the database you just created with the same username and password that’s in the wp-config.php file.
  5. Copy over all the wordpress files to the new home directory on the new server, once that is done the site should be up and running.
  6. Download Blue velvet URL Updater and update all image URL’s in the database.