WordPress.org

Ready to get started?Download WordPress

Forums

Move WP Multisite to another domain name (5 posts)

  1. kongen
    Member
    Posted 3 years ago #

    Hi,

    Inside Hostgator I can change domainname on my hosting account. I have WP Multisite (with 5 sites) installed on domainA and want to move it to domainB. The hosting location is the same (I just change domainname on my hostingaccount).

    Which files must I do changes in to make the move of WP work?
    Do I have to change anything in the database?

    Thanks,
    klare

  2. look in htaccess & wp-config.php.
    Then start changing the name in all places in the database. (there's a lot)

  3. alittlebitofnothing
    Member
    Posted 3 years ago #

    I did this just now

    Edit wp-config.php

    change to the new database settings (or leave them in your case) and add:

    define(‘WP_SITEURL’, ‘http://newsite.com’);
    define(‘WP_HOME’, ‘http://newsite.com’);

    in the db there is a table wp_blogs, which will have the

    oldsite.com

    change this to newsite.com and you should be able to login.

    also check that in wp_options you have got newsite.com

    a search and replace plugin will get you quite a long way to changing all those db references (e.g. images), but there are always a few that have to be in through mysql or phpmyadmin.

    like Andrea implies, it is a pain ...

  4. toddlohenry
    Member
    Posted 3 years ago #

    How does this impact the 'child' sites in a multisite install?

  5. Their domain changes too, unless they are domain mapped.

Topic Closed

This topic has been closed to new replies.

About this Topic