Hi - I have a redirect error, when trying to login to Multisite Network Admin (all site dashboards are accessible). I know exactly what I did to cause the error, and I'm hoping someone can help me revert back.
Background: I have a subsite (e.g. sandbox.domain.com) that I wanted to make the main site (domain.com). I wanted to take the current main site, and make that a sub site.
So, after doing some reading, I took this line in wp-config.php:
and changed the 1 to a 2 which is the sandbox site. That didn't really change anything, so I went into network admin, into the site settings, and I changed the URL of the domain.com site to sandbox2.domain.com. (My thinking was I'd do that, and then change sandbox.domain.com to domain.com).
When I submitted that change, the Network Admin was no longer accessible. All sub-sites are still accessible, but the main site isn't, and the network admin isn't. i pulled up phpMyAdmin, thinking I could change the URL reference back via MySQL, but I couldn't find the sandbox2.domain.com reference anywhere.
I also tried to use WP-CLI, but when I do a command like, "wp network meta list", I get the message, "Site domain.com/ not found.
So, how can I undo what I did? Bonus question - How can I swap my main site and sub-site?