I am trying to change my WP multisite from:
http://domain.co.uk to http://www.domain.co.uk
...but with no luck.
I have tried a simple search & replace on the db to replace all instances of http://domain.co.uk with http://www.domain.co.uk as well as updating my wp-config.php file with the following:
define( 'DOMAIN_CURRENT_SITE', 'www.domain.co.uk' );
Everything appears to work fine, however it means that I can no longer access my Network Admin page. When clicking the link it attempts to load for about 10 seconds before Firefox then gives me an error to say that the page isn't redirecting properly, although I can't figure out where it's trying to redirect to.
I did add the following to my wp-config.php file to fix a different issue:
define('NOBLOGREDIRECT', 'http://www.domain.co.uk');
And I have tried it both with and without this line of code, neither appears to work.
If I reverse the search & replace on the db and restore my wp-config.php file then the site works fine again, but without the 'www' in the address bar.
Does anyone know if I am missing something? I'm getting very frustrated trying to figure out what the problem is an am actually considering just starting with a fresh install of WordPress and copying over the necessary posts from the old database, although that could get a little messy.