How to change URL for WP Multi Site?

the installation is in pre launch phase and the client has decided to use a different url ,how cute ;-(

Can anybody point me to a good guideline I can follow? I never did anything like this before. Of course I have access to all, including mySQL.

Any help is really appreciated. I do not want to mess up.

Forgot to mention, there is only 1 site (blog) setup at this moment, the multi site was setup with the future in mind.

  • Alexander
    • DEV MAN’s Mascot

    Hi @mark,

    This is pretty easy, especially if it’s just the URL changing and you’re not moving servers. Here’s a link to the page on the WordPress Codex you might want to take a look at:

    On that page, what you’re looking for is steps 2-9 Essentially you’ll be changing the domain name from within the WordPress Dashboard. After this you’ll have issues trying to get to the site, but once you have the new domain / URL setup WordPress will load everything properly.

    Let me know if you run into anything, or if you need more help. I’m hoping this gets you all squared away, but if needed I can definitely help with more details.

    Thanks for being a WPMU DEV member. Let us know if we can be of any further assistance.

    Best regards,

  • Mark
    • Flash Drive

    Hi alexander,

    thanks for your fast response. Are you sure this is correct for Multi Site Setup? there is so many confusing stuff on the Internet about it.

    Again, it is Multi Site Setup

    It is only 1 blog/site created at that time

    We are not changing Hosting Provider and not the location of the Installation.

    All will remain as it is right now, except that a new Domain will be pointed to the Installation Folder.

    Still sure that the link info is correct for my scenario?


  • Mark
    • Flash Drive

    Hi, is it possible that someone can think about it again. I am really very, very unsure about how to do this.

    As I said, installation (wp multi site) will not be moved, everything stays where it is. domain used at installation but now it must be changed to

    what would be the workflow, in regards of my wp installation, after we made the domain changes on the server?

    Thanks for your help.


  • Alexander
    • DEV MAN’s Mascot

    Mark, I'm sorry, I'm not sure how I missed that last bit about Multisite. Thanks for following up with me on this. I'm sure that was a confusing answer.

    Further down on that page I linked before there's a section on "Moving Multisite" They provide a script to automate alot of this, but with yours being so small and only having one site, it might be easier to do it manually.

    Ok, here's how this works. There are a few database changes to make. I'd recommend doing this from within phpMyAdmin.

    I'd recommend doing a full database backup before getting started.

    1. Table wp_options: Change "siteurl" and "home" to the new URL. Be sure to include the "http://" prefix and the trailing slash "/" (2 screenshots)

    2. Table wp_sitemeta: Similar to wp_options, there's a "siteurl" field you'll need to change here. Do include the "http://" and the trailing slash

    3. Table wp_site: Change the only value here to your new domain. Don't include http:// here. This is the domain only (1 screenshot)

    4. Table wp_blogs: Each subsite will have an entry here. You'll need to update the domain column for each row, (similar to what you did in the previous step) This column is for the domain only, not the URL, so no "http://" this time.

    5. For each wp_{blog_id}_options table. Every blog will have it's own options table created. You'll need to update it just like in step one. That would mean the "siteurl" and "home" fields.

    6. Finally, you'll need to update your wp-config.php file:

    define( 'DOMAIN_CURRENT_SITE', '' );

    And that should do it. Let me know if you run into any trouble!

    Best regards

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.