Redirecting back to home after logon

I didn’t exactly like the default behavior of wordpress to send registered users to the dashboard after they log on, so I did a few google searches and found a faq page that looks like it’s out of date. But it got me close enough.

Trick was to go into the wp-login.php file and find the

case login:

… statement, then go down a few lines and change the

$redirect_to = 'wp-admin/'

… statement and change it to just

$redirect_to = '/'

… to get the behavior I wanted.

If your blog isn’t in the root of your domain then that redirect should be to where it sits.

One thought on “Redirecting back to home after logon”

Leave a Reply

Your email address will not be published. Required fields are marked *