I have a multisite project. And then i want to change the parent domain name now. It is currently as:
Parent:
www.site1.com
Multisites:
www.oldsite.com/abc
www.oldsite.com/def
So how can i change the parent domain oldsite.com
into newsite.com
?
So the multisites will be automatically affected as:
www.newsite.com/abc
www.newsite.com/def
How can i get it?
this is a complex task (and takes even longer if you have many subsites already).
THINGS TO THINK ABOUT
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.
.htaccess
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/