Support » Networking WordPress » Exchanging main domain with a sub site domain?

  • Resolved Paal Joachim Romdahl

    (@paaljoachim)


    My clients has a multisite with the main domain byggebiologi.
    One of his sub sites is baldron.

    He wants baldron to become the main domain, and have byggebiologi as one of his sub sites.

    How do I proceed?

    Thanks..:)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    Carefully.

    This actually isn’t that hard to do, but it has to be done in a correct order.

    First you have to go to Network Dashboard > Sites and edit the site you want to be the main site. Change this to look like it’s your main site, so the domain would be ‘byggebiologi.com’ or whatever the REAL domain is.

    Make certain you leave ‘Update siteurl and home as well’ checked! Then go to your wp-config.php, look for this line:
    define('BLOG_ID_CURRENT_SITE', 1);

    Change it to the site ID you want to use as your main site. In this example, I want site #3, aka, sample, to become my main site. Change it and save it.

    Then you have to go back to your Sites and edit the old main site. Give it’s path a new name and press save, making sure you keep that checkbox checked.

    The wonder half-elf is present again…:)

    Ipstenu! I am very grateful for your presence at wordpress.org. You are the one who has answered many of my questions and I have benefitted a lot from your knowledge!

    I thank you very very much!

    Have a graceful day!

    I noticed another guy had changed it around so that I did not need to.

    One more question.

    When clicking My Sites The My Sites areas shows up.
    There is an option on the top:

    Primary Site – drop down –
    It seems one can select the Primary site. Is this the same, just an even easier way of doing the same process?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    I just tested that real fast on an install… I don’t think so. I want to say that’s a holdover from your ‘dashboard’ site, back in WP 3.0 Multisite. Basically all new users would be added to that site as a subscriber.

    In 3.3, we got the ‘psudeo subscriber’ which is the role for someone who has no role on a site, but is a user on the network.

    Thanks for checking!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Exchanging main domain with a sub site domain?’ is closed to new replies.