The MU forums have moved to WordPress.org

Another Redirect Loop (subdirectory install, Lighttpd, Admin account can login) (4 posts)

  1. mmccann
    Member
    Posted 15 years ago #

    Hi,
    I have the latest version of Wordpress MU installed with no plug-ins. It is configured to support subdirectories, not subdomains and is running on Lighttpd/mySQL (not my choice there).

    The admin account can log in and works perfectly, but all of the users experience a redirect loop in wp-admin. I've tried changing all the salt values to kill cookies, killing cookies manually, and altering my wp-config with these values.
    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define('SITECOOKIEPATH', '');

    I've also grepped around in the wp-admin directory, but didn't see anything that looked like it would cause this. Has anyone else experienced this? Does anyone know what's causing it and how to solve it? I appreciate your help!

    thanks!

  2. VentureMaker
    Member
    Posted 15 years ago #

    What is there is your error log?

  3. subster
    Member
    Posted 14 years ago #

    Did you found a solution for that?

  4. myrond
    Member
    Posted 14 years ago #

    fix:

    add following code to wp-login.php right after

    //
    // Main
    //
    
    if (strpos($_SERVER['SERVER_SOFTWARE'], 'lighttpd') !== false)
    {
    $_lighty_url = $base_url.$_SERVER['REQUEST_URI'];
    $_lighty_url = @parse_url($_lighty_url);
    $_SERVER['QUERY_STRING'] = $_lighty_url['query'];
    parse_str($_lighty_url['query'], $_lighty_query);
    foreach ($_lighty_query as $key => $val)
    $_GET[$key] = $_REQUEST[$key] = $val;
    }

    problem goes away

About this Topic