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.
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.
Are you already using a domain mapping plugin to get the subsite to bbb.org? Seems like that would be an easy route….
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 http://bbb with http://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.