I have set up a network of sites. There is currently a main site eg http://www.mainsite.com. I have a subsite called sitetest.mainsite.com.
I am wanting the sitetest.mainsite.com to become the main site and the http://www.mainsite.com to become the subsite.
I have noticed this is an issue because when I tried to send someone from sitetest.mainsite.com to the wp-signup.php, they get redirected to http://www.mainsite.com/wp-signup.php.
I have tried editing the wp-config.php where it says
define( 'DOMAIN_CURRENT_SITE', 'www.mainsite.com' );
Then in a SQL dump file doing a find and replace on all instances of http://www.mainsite.com, that kind of works. However sitetest.mainsite.com/wp-signup.php, is never found by the browser.
Short of creating a new network in the correct order, which is a bit of a pain, as I have many plugins etc configured. Any help would be greatly appreciated.