If you are having trouble migrating your website from another host, or just don't have the time, DreamHost currently offers a service that takes care of that for you. You can find more information in the DreamHost Website migration services article.
Migrating a WordPress site is different from migrating a simple HTML website because WordPress sites depend on both web files as well as a MySQL database to run. This overview explains your options depending on the type of migration you need.
Migrating a WordPress site from a different host
If you are migrating a WordPress site from a different hosting company (host), there are many different options available to you. Here are some of the more popular methods from which you can choose:
- Migrating your site using the DreamHost Automated Migration WordPress plugin
- Requesting DreamHost Professional Services to migrate your site for a fee (as explained in the notebox at the top of this page)
- Migrating your site manually using FTP and phpMyAdmin
Keeping the same domain name
If you are keeping the same domain name and you want to minimize downtime on the current site while you are migrating, you might benefit from setting up a mirror of your DreamHost site using a temporary .dreamhosters.com subdomain:
Changing the domain name
If you are migrating your WordPress site to DreamHost using the DreamHost Automated Migration Plugin, or with the help of DreamHost Professional Services, there is no need to manually update WordPress with the new domain name after the move completes. The DreamHost Automated Migration Plugin changes the domain name for you during the migration process, and any migrations done by the DreamHost Professional Services team include changing the domain name if needed.
If you choose not to use one of these options and migrate manually using FTP and phpMyAdmin, you must manually update your migrated site to the new domain name. After you complete the five steps in the Migrating Manually instructions, the following guide’s steps 5 through 7 help you rename your WordPress site manually:
Migrating a WordPress site between domains on your DreamHost account
If you wish to keep a WordPress site’s content but change its domain name to a new one, the domain name change tool in the Websites page can be used to migrate the content and change the domain name automatically.
If instead, you wish to migrate manually between domains, the following guide explains other methods to make sure your content fully changes to the new domain name:
DreamPress option to migrate your site to a new domain
If you are having trouble migrating a WordPress site using the above instructions or you would like a quicker way, you can upgrade your new domain to DreamPress, which offers an Import option. DreamPress is DreamHost's Managed WordPress hosting. It's a scalable service that allows users to manage their WordPress sites with simple pricing and added benefits of server robustness, caching, and memory.
If your current WordPress site was installed and managed by DreamHost's One-Click Installer, you can set up DreamPress on the new domain name and import the content of the current WordPress site into the new DreamPress domain. You can add DreamPress on a new domain on your DreamHost panel at Managed WordPress. Please see the following guide on how to import content in DreamPress:
PHP files downloading after a migration
In some circumstances, a site migrated to DreamHost from another hosting provider will not load correctly. When accessing the site, the browser will download a PHP file rather than display the webpage. This is typically caused by leftover code from the old hosting provider, most commonly the presence of an AddHandler entry in the site's .htaccess file like the example below:
AddHandler application/x-httpd-php70 .php
This code is not needed on DreamHost's servers and should be removed from the WordPress .htaccess file after the site is migrated over.