[resolved] Can't access wp-admin for additional sites (3 posts)

  1. chacha2000
    Posted 4 years ago #

    Hi everyone, i've been reading all the posts i could find about similar problems, but i can't seem to find any solution :/
    I have a fresh local wordpress network install (with subdomain). Everything seems in place, i can access my main site (and its dashboard), but i can only visit the secondary sites... For example, if i go to secondsite.mainsite, it's correctly displayed, but if i go to secondsite.mainsite/wp-admin i get an infinite login loop like this : http://secondsite.mainsite/wp-login.php?redirect_to=http%3A%2F%2Fsecondsite.mainsite%2Fwp-admin%2F&reauth=1
    The main site dashboard is only accessible in firefox / safari / opera (chrome and ie won't let me ! )
    I'm using wamp, i set up virtual hosts in apache, and followed all the given instructions for setting up a wordpress network.
    Any help would be much appreciated ! Thanks !

  2. chacha2000
    Posted 4 years ago #

    I ended up finding a solution myself, if anyone's interested, i just added

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

    to my wp-config.php file !
    It's perfectly working in all browsers now (front and back end)

  3. Tacklers
    Posted 3 years ago #

    Wow what a great solution, you really know how to do it. I was so chuffed when it worked for me too. Many thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic