• After changing the site URL for one of the sub-sites from subsite1.mainsite.dk to subsite1.dk , im no longer able to login there. Even tho it uses the same username+password as for the main site.

    I tried to reset the password from the database. I know its taking effect because I have to use the new password for mainsite.dk.

    subsite1.dk works fine in frontend perspective. I just cannot login to the control panel. I also reverted the theme of subsite1.dk to the default twentyseventeen (which mainsite.dk is using).

Viewing 1 replies (of 1 total)
  • Thread Starter jh5512

    (@jh5512)

    Think I solved it already. Tried removing browser cookies and cache – no luck. But…
    By adding these lines to wp-config.php.

    
    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define('SITECOOKIEPATH', '');
    

    It works fine now. Found the code here : https://tommcfarlin.com/resolving-the-wordpress-multisite-redirect-loop/ ,
    what is weird is that this article suggest a clearing of browser cookie + cache will do the same thing. That is not what I experienced.

    • This reply was modified 7 years, 10 months ago by jh5512.
Viewing 1 replies (of 1 total)
  • The topic ‘Subdomain URL changed – Can’t log in anymore’ is closed to new replies.