Changing primary domain of wodpress multisite

December 12, 2015 728 views
WordPress Nginx LEMP

Hi,

I have a wordpress multisite subdomain based installation.

I was trying to change the primary domain for the multisite following the tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-and-test-dns-subdomains-with-digitalocean-s-dns-panel

My goal

My main site : example.com
Has subdomain sites : sub1.example.com, sub.example.com

What I wanted to achieve
change my main site : dev.example.com
Should have the subdomain sites : sub1.dev.example.com, sub2.dev.example.com

Since, I am using multisite setup, I changed the "DOMAIN_CURRENT_SITE" .

Original entry
define('DOMAIN_CURRENT_SITE', 'example.com')

Modified entry
define('DOMAIN_CURRENT_SITE', 'dev.example.com')

As soon as I modify the domain current site to dev.example.com, I am not able to login. I do not get any error but wp-admin login page is only displayed.

Any suggestions ?

Be the first one to answer this question.