blogcapitol
Newbie
Just Getting Started
Member Likes (0)
Hi there.
The situation I have here is I am creating a subdomain for every blogger who sign up for the service, such as
Main Site: webdomainname.com
User1 will get user1.webdomainname.com
User8 will get user8.webdomainname.com
etc...
From the main site where the user will be able to login, I will want user1 or userxx to get redirected directly to their web page, user1.webdomainname.com.
Please kindly advice if this is what this plugin is meant for, and if not, please advice how do I achieve this.
Thank you.
Best Regard
Bill

Responses (6)
Support Kangaroo (joined March 2011) Likes (0)
Greetings Bill,
Welcome to WPMU Dev!
Yes this is the correct plugin to be using for redirecting after login.
Alternatively, you could code up a solution to automatically redirect upon login, perhaps add to your theme's functions.php file, using the following:
http://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect
Thank you for being a WPMU Dev member!
Cheers, Joe :-)
If this thread is not resolved because the suggested action did not work or you have any more questions related to this thread, please feel free to post them below including any new symptoms or errors and tick the 'Mark as Not Resolved (re-open)' box below the post area (or else we'll miss it!)
Member (joined February 2012) Likes (0)
Hi there.
Great to hear from you. Unfortunately it is not really working. I see this configuration page on the network administrator page. Because what I need is something dynamic, I cannot put in a static referred page there. Please kindly advice.
Thank you.
Best Regards
Bill
Member (joined February 2012) Likes (0)
Got it working now with reference to the other forum topic. Thanks.
Member (joined February 2012) Likes (0)
Hi Bill!
Here was the solution I made.
In the plugins/login-redirect folder there is a file login-redirect.php
Edit the file on line 62 -> function redirect
Insert this line above:
global $user_login;Where you have: (Appear 2 times)
$login_redirect_url = get_site_option( 'login_redirect_url' );Change for this: (Appear 2 times)
$login_redirect_url = 'http://'.$user_login.'.webdomainname.com/' ;Save and upload.
Best regards,
Lucas
Support Kangaroo (joined March 2011) Likes (0)
Greetings Baeta,
Thank you for your coding contribution to the WPMU Dev forum and for trying to help another member.
Some rep points sent your way.
Cheers, Joe
Member (joined February 2012) Likes (0)
Thanks aecnu!
If someone try the solution above and it didn't work, try to complement the code above with
get_currentuserinfo();on the line
global $user_login;It'll resolve the problem.
Become a member