How to change main domain in a MU install

Hello, I have a domain expiring in a few days. It is the main domain in a WPMU install.

How do I change it with a new domain without affecting the rest of the sites negatively?

I tried this before and failed so I'm asking for help.

Thanks,
Eve

  • Jack Kitterhing
    • Code Norris

    Hi there Eve,

    Hope you're well today and thanks for your question.

    In the network admin > settings > network settings, you'll need to change the domain there.

    And you'll need to make sure the domain has a wildcard A record if your using a sub domain multisite.

    Then you'll need to run a find and replace script for the database to replace the old domain. I'd recommend using this one here https://github.com/interconnectit/Search-Replace-DB :slight_smile:

    Thanks!

    Kind Regards
    Jack.

  • Jack Kitterhing
    • Code Norris

    Hi there Eve,

    Hope you're well today, this would depend on if the domain is saved as a option anywhere from plugins and that data is serialized, the script would pick all of them up.

    But it would be in the wp_options table for the home_url and site_url, but you'd also need to check the domain across all the sub sites as well, which is why normally using the script would be the best method :slight_smile:

    Thanks!

    Kind Regards
    Jack.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.