Redirecting a user to "his" subdomain after login

Events happening in the community are now at Drupal community events on www.drupal.org.
RTauson's picture

Hi !
Hope this isn't already posted in the forum, I've tried a couple of hours to find a solution.
I would like to do a multi-site install (either using "true" drupal multi-site or using domain ).

Would like to have a common subdomain that all users use to login, and then be redirected to their respective "home site".

For example the main sub domain would be
portal.example.com
All users should use that address and after log in be redirected to for example:
customer1.example.com

So I guess I want to have a shared user table in portal.example.com then have some kind of info on the user that redirects them.

Anyone having an idea ?

Comments

That will take some custom

Garrett Albright's picture

That will take some custom programming, but it shouldn't be too difficult. Check out hook_user().

Session

agentrickard's picture

I did this for Domain User and had to use hook_user() and a temporary session variable that fired a redirect in hook_init().

http://therickards.com/api/file/domain_user/domain_user.module/Domain

--
http://ken.therickards.com/

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: