How to move WordPress to a different domain at DreamHost?

Generalities

DreamHost offers several methods to help you move your WordPress installation to a new domain name. This article lists two ways to help you accomplish this.

These instructions can be used with any WordPress site, including One-Click installations. However, if you have a One-Click setup, the DreamHost panel offers an easier way to move your site to a new domain. Review the following article for more information:

· Change the domain of a WordPress site

Method 1 — DreamHost Content Move Service

DreamHost offers a variety of services, including moving WordPress between domains. See the following article to see the different options available.

· Website Migration Services

Method 2 — Manually move your site

You can also manually move your site yourself. The following instructions describe how to drive a WordPress installation between two domains hosted at DreamHost. The example domains used in these instructions are:

· oldsite.example.com 

and

· newsite.example.com

Step 1 — Back up your data.

You should always back up your data before making any changes to your site. See the following article for instructions on how to back up your website’s files, database, and mail:

· Manual techniques to generate backups

Step 2 — Add hosting for the new site.

Add the new domain ( newsite.example.com ) to your panel. Make sure to set it to Fully Hosted:

· Add a Domain

Step 3 — Create a new database.

Go to the MySQL Databases page and create a new MySQL hostname and an empty database.

· Create a new database

Step 4 — Transfer your WordPress installation.

Transfer the WordPress files you backed up in step one to your new domain. If you had email addresses on the old site ( oldsite.example.com ), make sure you create the same addresses on your new domain. Then you can transfer those emails.

1. Upload your web files using the following article:

· FTP

2. Upload your database using the Migrate MySQL article:

· Migrate MySQL

3. Transfer mail from your old domain:

· Mail setup – Use this article to set up your email addresses on the new domain.

· How to import mail: This article explains how to import your mail to the new domain.

· Mail Client Configuration: This article guides the different mail configurations that you can use.

Step 5 — Edit the new wp-config.php file.

Login to your new site ( newsite.example.com ) via FTP or SSH and open the wp-config.php file (it’s in your site’s directory). You will see the following contents:

define(‘DB_NAME’, ‘exampledatabase’);

define(‘DB_USER’, ‘exampledbuser’);

define(‘DB_PASSWORD’, ‘database password here’);

define(‘DB_HOST’, ‘mysql.example.com’);

define(‘DB_CHARSET’, ‘utf8’);

define(‘DB_COLLATE’, ”);

$table_prefix = ‘wp_2hdy121d_’;

Update the following:

· Database name.

· Database user.

· Database user password.

· Hostname.

· Replaces the existing WordPress $table_prefix value with the imported value of $table_prefix.

Open the database file you downloaded earlier in a text editor to see the correct prefix for each table. The following example shows what you will see. In this example, the table prefix is wp_mwpp89_.

· 

— Table structure for table `wp_mwpp89_comments`

· 

Step 6 — Update all URLs in the database.

You need to update all the URLs in the database since the database uses the old URL. Check out the following article for various options on how to accomplish this:

· Change the URL of my WordPress site

The HOME and SITE URLs will also be updated when you update all URLs.

At this point, your website should load generally on the new domain name.

Resume

Once the above steps are complete, your new site looks exactly like it did on your old domain name.

Leave a Comment

Your email address will not be published. Required fields are marked *