Ready to get started?Download WordPress


Login redirect to main page? (3 posts)

  1. salomonmeijgmailcom
    Posted 8 years ago #

    How do I make it so that when the a user logs in they are redirected to the main page, or better yet to the page they came from, instead of the dashboard? I tried Weasel's Login Redirect plugin (http://www.thedailyblitz.org/?page_id=433) but it doesn't seem to do anything, I set the redirect dir to /index.php but it still just goes to the dashboard. How would I go about doing this?

  2. monkeypup
    Posted 8 years ago #

    Round about line 170 in your wp-login.php file, you will see this:

    $redirect_to = 'wp-admin/';

    Change that bad boy to this:

    $redirect_to = 'index.php/';

    Should work ya fine.

  3. salomonmeijgmailcom
    Posted 8 years ago #

    That worked like a charm! Thank you so much! :) Kudos to you :)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.