WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a multisite project. And then i want to change the parent domain name now. It is currently as:





So how can i change the parent domain oldsite.com into newsite.com ? So the multisites will be automatically affected as:


How can i get it?

share|improve this question
When cross-posting, it's nice to cross-link them... – brasofilo Jul 29 '12 at 18:13

this is a complex task (and takes even longer if you have many subsites already).

Basically allow yourself 48 hours and start by making a list of all things that will be affected such as:
- Adwords
- Google Webmaster Tools
- Google Analytics - PageRank
- Twitter / Facebook & losing all the social sharing stats
- How many domains to change
- DNS settings / cpanel settings
- 301 redirect everything

How many Subsites do you have?
You will need to make database table changes for every subsite ... manually ... you need to change wp_siteid_options for each site

Don't rely on search and replace for oldsite.com -> newsite.com
First reason is that your web host may have directory structure like /www/public_html/oldsite.com/

So any linked images or files will break if you just do a search & replace.

wp blogs
WordPress Multisite has this table you'll need to check and make changes to it.

You'll need to setup a 301 redirect for oldsite.com -> newsite.com

See also http://wordpress.damien.co/2012/05/change-your-wordpress-multi-site-domain-url/

share|improve this answer
Serialized data must be replaced with a proper tool, like Search Replace DB. With BackupBuddy 2, I had to run this for finishing the export/import. Btw, I always do a local mirror of my Multisites with BB without much fuss. – brasofilo Jul 29 '12 at 18:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.