WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Exchanging main domain with a sub site domain? (6 posts)

  1. Paal Joachim Romdahl
    Member
    Posted 2 years ago #

    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..:)

  2. 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.

  3. Paal Joachim Romdahl
    Member
    Posted 2 years ago #

    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!

  4. Paal Joachim Romdahl
    Member
    Posted 2 years ago #

    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?

  5. 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.

  6. Paal Joachim Romdahl
    Member
    Posted 2 years ago #

    Thanks for checking!

Topic Closed

This topic has been closed to new replies.

About this Topic