Support » Fixing WordPress » wp-login.php redirect problem

  • I installed the latest version and first the siteurl and home were all wrong at the database, got that sorted out. But now accessing the wp-login.php page it says on the addressbar “wp-login.php?redirect_to=” instead of “wp-login.php?redirect_to=%2Fwp-admin%2F”. After I hit the “log in” button it does actually log me in but redirects me to a blank page (at wp-login.php). When I try to log out from the dashboard it does kinda log out but it stays on the dashboard page but the addressbar says “wp-login.php?action=logout”.

    I uploaded another wp-login.php file but that didn’t work.

    If someone from Finland is reading: the site is on Sonera, haven’t had any problems with other hosts before.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anyone?

    Resolved. If someone has similar problems, here’s what worked for me.

    In wp-login.php change 2 things:

    1. wp_clearcookie();
    $redirect_to = ‘wp-login.php?loggedout=true’;

    change the “wp-login.php?loggedout=true” to the actual address, like “”

    2. Find
    <input type=”hidden” name=”redirect_to” value=”<?php echo attribute_escape($redirect_to); ?>” />

    change “value=”<?php echo attribute_escape($redirect_to); ?>”” to value=”<?php bloginfo(‘wpurl’); ?>/wp-admin/”

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp-login.php redirect problem’ is closed to new replies.