WordPress.org

Support

Support » How-To and Troubleshooting » Login redirect to main page?

Login redirect to main page?

  • salomonmeijgmailcom
    Member

    @salomonmeijgmailcom

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    salomonmeijgmailcom
    Member

    @salomonmeijgmailcom

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Login redirect to main page?’ is closed to new replies.