Redirect to a subdomain

Summit - November 4, 2007 - 23:39
Project:Login Destination
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,

I try to get a login redirect to a subdomain with this great module.
I tried the beneath code in the Preserve destination field:

global $user;
  if ($user->uid == 1) {
    // Redirect the Administrator
    return 'admin';
  } elseif ($user->uid == 2) {
    // Redirect the Site Owner to His page
    return "$name.isnow.in";
  } else {
    return 'node';
  }

but it doesn't work.

Can someone please help me to get the redirect to a subdomain?
Thanks in advance!

greetings,
Martijn

#1

Summit - November 7, 2007 - 09:16

sorry, I asked this question double, I see now, see: http://drupal.org/node/190065
again sorry.
greetings,
Martijn

 
 

Drupal is a registered trademark of Dries Buytaert.