Support » Networking WordPress » Temporary Multisite

  • So I might not have needed to do this this way but here’s what I did:

    I wanted to redesign my blog, so I set up a multisite. Now I would like to move the new design to the old url location. What is the best way to do this?

    Original url is bloodandchampagne.com
    The new design is b.bloodandchampagne.com

    I would like to use the original url so that way I will not lose any rss subscribers.

    Does anyone have experience with this?

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Don’t do this next time. Multisite is NOT meant for what you did, You would be much better off installing a separate instance of WP in a folder, and then use the ‘Giving WordPress it’s own directory’ trick.

    Yes you can do this, but it’s probably gonna suck.

    1) You need to change your blog IDs in the wp-config.php file:

    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    That means Site ID 1 is the main site. IF you change that, another site will be the main site. So for you, it’ll probably be #2.

    2) You have to change your blog URLs around so it knows b.bloodandchampagne is now bloodandchampagne. Go to the network admin page, and edit the site for b.bloodandchampagne to bloodandchampagne.com, making SURE you check the boxes tto change home and site URLs. Do the same for bloodandchampagne changing IT to b.bloodandchampagne

    3) Search & replace post content as needed. I use https://github.com/interconnectit/Search-Replace-DB and search JUST the wp_posts table and wp_2_posts in order.

    If you need directions with pictures, I wrote it up in https://store.halfelf.org/ebooks/wordpress-multisite-110/ – It’s a pay what you want ebook.

    Thread Starter therealmurphy

    (@therealmurphy)

    Step 1 seems easy enough. The problem is with step 2.

    When I go to network admin, I am able to change the second url to bloodandchampagne.com. But I am not able to change the first url to b.bloodandchampagne.com. The option to change the url for the first site is greyed out so I cannot change it.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Yaaaay you get to do it in the database directly 🙁

    wp_sites would be the table, but also check wp_options

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Temporary Multisite’ is closed to new replies.