• I searched like 2 hours how to do this and all posts are 2 years+ old and plugins are poorly rated because it doesnt work for some ppl after update. Can someone tell me how to redirect users to example.com after login instead goind to user profile page? Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • It’s been a while since I’ve used this plugin, but It was pretty straight forward and very reliable when I did.

    https://www.ads-software.com/plugins/peters-login-redirect/

    The current version appears to have been tested up to and is compatible with WP version 4.8.1. Worth a try?

    Thread Starter BaTmanSuPermAn

    (@haki1988)

    I checked it, some ppl complain on support page it doesnt work anymore.

    Indeed doesn’t work anymore but have you tried with an .htaccess redirect? Or do you really need a wp plugin to achieve this?

    I checked it, some ppl complain on support page it doesnt work anymore.

    I don’t think you will ever find a plugin that works every time for everyone. There are just too many different site/theme/plugin combinations and configurations not to have an occasional issue. You can find negative feedback for absolutely every solution for every problem out there.

    That being said, you’ll never find a plugin that works for your situation, if you never elect to try any of them yourself.

    I just re-installed Peter’s Login Redirect on one of my dev sites and assigned a specific user a redirect URL on both login and logout, and it worked perfectly during my test. I guess for me, the plugin would be working as expected.

    Hope you find something that works for you!

    • This reply was modified 7 years, 2 months ago by Clayton James.
    Moderator bcworkz

    (@bcworkz)

    You can redirect logins from the “login_redirect” filter by sending a Location: header, followed by exit(); of course. You’ll need to conditionally send the header based on your exclusion criteria or else no one can get anywhere else after using the login page. For one thing you will want to exclude admin users from redirects. You should probably only redirect when the original request contains “/wp-admin”. You may wish to exclude certain action parameters from redirects. Etc. in accordance with your specific needs.

    Custom code like this delivers exactly what you need, no more, no less. Of course you would need to be somewhat knowledgeable of PHP coding.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘redirect users to site after login’ is closed to new replies.