Hi Aurelius,

I use something like this in config/routes.php:

$subdomain = substr(env("HTTP_HOST"), 0, strpos(env("HTTP_HOST"),
"."));

if ($subdomain != 'domain') {
  Router::connect('/', array('controller' => 'users', 'action' =>
'view', 'pass' => $subdomain));
}

Regards,

Michael

On 9 Apr., 01:17, Aurelius <[email protected]> wrote:
> Hi!
>
> I want to have a subdomainrouting from
> http://(.*).domain.com mappt to htpp://www.domain.com/users/view/username:$1,
> which should be mappt standardwise like a normal cake app.(or mybe
> directly).
>
> I Don't really understand much about modRewrite and even less about
> cakes dispatcher :-/
> Can someone help me and tell me what I should replace?
>
> thx
> Aurelius
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to