• I made a mistake in setting up a multisite that is now live, didn’t follow best practice. I’d like to change the root (www.domian.com) to the domain.com instead so I don’t get a 404 when people try to go to ‘domain.com’

    Whats the best way to go about doing this? 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • It isn’t too hard. Do you have access to the wordpress database as you will need to make changes there.

    Here are the options in the database to change

    wp_options: options named “siteurl” and “home”
    wp_site
    wp_sitemeta: the option named “siteurl”
    wp_blogs: any entries in the “domains” column that have the old domain name
    wp_#_options: Each sub-site will have sets of tables that correspond to the blog_id in the wp_blogs table. You need to go to the wp_#_options table, where # corresponds to the blog_id, and update the “siteurl” and “home” settings in that table.

    Thread Starter eadnams

    (@eadnams)

    Yeah, I can get at the database, no problem.

    Basically looks like a bunch of find/replace ops would do the job?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    READ THIS LINK FIRST!!!!

    http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Multisite

    You cannot JUST to a blanket search/replace. You have to use a serialization safe script.

    Thread Starter eadnams

    (@eadnams)

    Oh, right, cuz… other sites on the install 😛

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Moving multisite root from www.domain.com to domain.com?’ is closed to new replies.