Moving WordPress MultiSite to different domain

Jan 23, 2013

Update the database

It seems like a lot of people have trouble moving a WordPress Multisite from one server to another.

Here is my process for transferring multisites.

  1. Dump the database
  2. Use sed to replace the old domain name with the new domain name
  3. Re-import the new database

    mysqldump -uroot some_database | sed 's/' | mysql -uroot some_other_database
  4. Update the .htaccess file, if it is a sub directory install

    RewriteBase /                   # <= Fix the base
    RewriteRule ^index\.php$ - [L]
  5. Update the wp-config.php file

    define('DOMAIN_CURRENT_SITE', '');  # <= Replace the old domain
↫ All Notes