{"id":2627061,"date":"2012-03-13T21:29:13","date_gmt":"2012-03-13T21:29:13","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/changing-sub-site-domain-breaks-login\/"},"modified":"2016-08-20T05:34:03","modified_gmt":"2016-08-20T05:34:03","slug":"changing-sub-site-domain-breaks-login","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/changing-sub-site-domain-breaks-login\/","title":{"rendered":"Changing sub-site domain breaks login"},"content":{"rendered":"<p>Hello. I have a WordPress network, oit-test.drake.edu, with 2 sub-sites: bot and sjmc. From the Network Admin -&gt; Sites page I edited the 2 sub-sites and changed their domain as follows:<\/p>\n<ul>\n<li>bot.oit-test.drake.edu changed to bot-test.drake.edu<\/li>\n<li>sjmc.oit-test.drake.edu changed to sjmc-test.drake.edu<\/li>\n<\/ul>\n<p>Then i used <a href=\"https:\/\/raw.github.com\/interconnectit\/Search-Replace-DB\/master\/searchreplacedb2.php\">searchreplacedb2.php<\/a> to replace &#8220;bot.oit-test&#8221; with &#8220;bot-test&#8221; and &#8220;sjmc.oit-test&#8221; with &#8220;sjmc-test&#8221;.<\/p>\n<p>The main network site (oit-test) works just fine. Sub-sites display just fine and internal links seem fine. But, login to sub-sites is broken: when i put in username\/password it just takes me back to the login page. Even if i login to the network as a superadmin, if i try to go to a sub-site&#8217;s dashboard, it just goes to the sub-site&#8217;s login page.<\/p>\n<p>Per some recommendations found in the forums I tried clearing my cache and cookies, and even restarting the browser. Login to the sub-sites still doesn&#8217;t work. Any ideas?<\/p>\n","protected":false},"template":"","class_list":["post-2627061","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2627061","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2627061\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=2627061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}