How can I set Login Redirect to send user to his Main Blog Dashboard?

Hi Guys!

Hope you can help with this. :slight_smile:

In a WP MultiSite blog network, I’d like to allow all users to login via the same URL, so they don’t all have to remember the individual login URL for their individual blog.

So they would all login at the main site in the blog network (i.e. http://www.blognetwork.com/wp-login.php ) – and upon login, be automatically redirected to their main blog dashboard, i.e. joesblog.blognetworks.com/wp-admin/

This seems like a perfect use of Login Redirect, but not sure how to do it. :slight_smile:

Thanks!

  • aecnu
    • WP Unicorn

    Greetings Jennifer,

    Thank you for this great question and a significant item to bring up.

    This seems like a perfect use of Login Redirect, but not sure how to do it. :slight_smile:

    Nope log in redirect does not work this way – they would need to log in to there own URL or get a warning they are trying to log into the wrong site.

    But I may have a special solution for you that I put together myself. I have attached the plugin and let me know how it goes with it :slight_smile:

    Please advise.

    Cheers, Joe

  • Jennifer
    • The Incredible Code Injector

    Hey Joe!

    This is a follow-up item to this same issue that we just ran into, so adding on this this same topic. :slight_smile: let me know if it’s best to create a new one and we can do that.

    This plugin you shared works perfectly – for all the subdomain blogs.

    So when anyone with a subdomain site goes to our homepage here – http://theblogpress.com/ – and clicks on “member login” at top right, they are instantly redirected to their own dashboard. Excellent.

    However there’s a problem with the blogs that are domain-mapped.

    When I try to login to a domain-mapped site, the login works, but then it redirects me to Login again on the domain-mapped site. :slight_frown:

    Suggestions?

    Note that we’re using the WPMUDev Domain Mapping plugin. We had originally set the “Administration Mapping” in Network Settings to have admin be on the “original domain” but that was causing problems with URLs in sitemaps for domain mapped sites showing as sub-blogs. So we had to change this to be the “mapped domain”. Screenshot: http://www.screencast.com/t/i0D58qklOq

    Thanks!

  • aecnu
    • WP Unicorn

    Greetings Jennifer,

    Thank you for all the wonderful compliments how great the plugin works, I am less then a junior coder but managed to pull that one off.

    However, trying to integrate it with domain mapping is way beyond my expertise.

    However, you could always approach someone like Tweaky and see if they may be able to code in domain mapping for a reasonable amount:

    https://www.tweaky.com/

    Thank you for being a WPMU Dev Community Member!

    Cheers, Joe

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.