Viewing 7 replies - 1 through 7 (of 7 total)
  • Well, yeah, and there a half dozen posts in the last couple weeks about that. Try searching for “redirect login”.

    Thread Starter danielby

    (@danielby)

    Thanks a lot. I’m newbie in wordpress and I didn’t find the correct keyword to search about my problem. Thanks!

    Hope that helped; I couldn’t actually put my finger on a relevant post just then. Good luck….

    Thread Starter danielby

    (@danielby)

    Here is the solution:
    Open the wp-login.php file and edit the next lines:

    Line 28:
    change this: $redirect_to = ‘wp-login.php’;
    to: $redirect_to = ‘/’;

    Line 170:
    change this: $redirect_to = ‘wp-admin/’;
    to: $redirect_to = ‘/’;

    Whis this changes, when a user log in and log out will be redirected to the index.
    Thanks

    PD: I’m using WordPress 2.0.2 under Debian GNU/Linux

    Okay, great…. a couple of caveats here though: your current version of wp has a couple of massive security holes – you really need to upgrade it NOW; and keep firmly in mind that the sort of edit you’re making to the redirect MUST BE DONE every time you upgrade wp.

    Thread Starter danielby

    (@danielby)

    “and keep firmly in mind that the sort of edit you’re making to the redirect MUST BE DONE every time you upgrade wp.”

    Yes, I know that…

    “you really need to upgrade it NOW”

    I have a lot of configured files…OMG!! xDD
    I will try to update to wp 2.0.5 right now.
    Thanks!

    Yeah…. I know, it’s a MAJOR PITA. But really, it does need to be done, and sooner rather than later is obviously better. I feel your pain….

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change users login not to go to the dashboar’ is closed to new replies.