Viewing 2 replies - 1 through 2 (of 2 total)
  • maybe an answer lies within here: http://mu.wordpress.org/forums/topic/13452

    Thread Starter Equal Web Creative

    (@equalwebcreative)

    Finally managed to do it with the code below that redirects all visits to domain.com/wp-login.php to the current blog.

    <?php
    // redirects all instances of wp-login.php to the site home
    function change_login_redirect($redirect_to, $request_redirect_to, $user) {
                $primary_url = "/";
                wp_redirect($primary_url);
        return $redirect_to;
    }
    add_filter('login_redirect','change_login_redirect', 100, 3);
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect Users After Login’ is closed to new replies.