WordPress.org

Ready to get started?Download WordPress

Forums

Possible to change the root site? (4 posts)

  1. Bill Dennen
    Member
    Posted 2 years 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 2 years 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. Bill Dennen
    Member
    Posted 2 years 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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags