Forums

Possible to change the root site? (4 posts)

  1. wjdennen
    Member
    Posted 5 months ago #

    Hi,

    Is it possible to switch which site is the "root" site on a network with subdirectory install? I have a site at "/" and another site at "/draft" and I'd like to swap them.

    Can this be done?

    Thanks!

  2. Rod Whiteley
    Member
    Posted 4 months ago #

    Yes. I just did that in a test site to see what would happen. I edited the wp_blogs table directly in phpMyAdmin. The result seems a little weird, and I have not done any serious testing, but nothing very bad has happened so far.

    ...later...

    Ah, I see why it's weird. The wp_site table and the siteurl and home entries in both options tables have to be changed too.

  3. wjdennen
    Member
    Posted 4 months ago #

    Thanks Rod. I'll give it a whirl, too. I was worried that the root blog needed to have ID=1 for some reason?

  4. Andrea_r
    team pirate
    Posted 4 months ago #

Reply

You must log in to post.

About this Topic

Tags