• swcomm

    (@swcomm)


    I need to change the URL for a site in a multisite installation – not the primary site/domain, just one of the subsites. Do I have to edit the db for this, or will doing it via the backend be OK? Using domain mapping now.

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

    (@ipstenu)

    ?????? Advisor and Activist

    Depends what you’re changing the domain from and too….

    Thread Starter swcomm

    (@swcomm)

    It’s pretty straightforward. Subfolder install; ordinary domain name (not a subdomain of the primary site.) Branding for the subsite is changing, hence the name change.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Sorry, that wasn’t quite what I meant. I didn’t say it clearly ??

    Are you changing example.com to anotherexample.com for the entire network?

    If so, grab this https://github.com/interconnectit/Search-Replace-DB and run it.

    Thread Starter swcomm

    (@swcomm)

    LOL! I think this is why I couldn’t find an answer to this when searching this particular question. Getting the semantics of the question right is really hard! No, not entire network. Here’s the situation as an example – primary site/network domain is aaa.org and is not changing. Subsite is now bbb.org and I want to change that to ccc.org.

    This whole installation is one organization which happens to have separate sites with distinct domain names for specific initiatives, if that helps illustrate this at all. One of those initiatives is changing its name and so needs a new domain name.

    Moderator Bet Hannon

    (@bethannon1)

    Are you already using a domain mapping plugin to get the subsite to bbb.org? Seems like that would be an easy route….

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Subsite is now bbb.org and I want to change that to ccc.org.

    To add on to what Bet said, change domain mapping, and then you WILL want to use this: https://github.com/interconnectit/Search-Replace-DB

    Search for the wp_x_posts and wp_x_postmeta tables for the bbb.org site and replace https://bbb with https://ccc to fix all internal links.

    In theory you can run a s/r bbb.org/ccc.org check on the whole DB with that tool and it’ll work just fine.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changing subsite domain name’ is closed to new replies.