This is indeed exactly what I need, thank you for that ! Funny is that I also found the admin on subdomains as mentioned in the article too.. but not this one :)
Now I need to think about if I want to the exeptions from a database or not... I think this is faster than including them in the code itself. On 19 sep, 09:38, Bert Van den Brande <cyr...@gmail.com> wrote: > I believe this is what you're looking for > :http://bakery.cakephp.org/articles/view/subdomaining-with-cake > > > > On Fri, Sep 18, 2009 at 11:40 AM, Matt <gttc...@gmail.com> wrote: > > > I'm searching for a way to make subdomains in cakephp ussable for > > profilepages of users. > > > Ofcourse I need a wildcard in my DNS and Apache config, which is > > already done. > > > Because I want to keep this way of subdomains flexible, I don't want > > to use a .htaccess file so I need to do something with a route that > > recognizes the subdomain and does something magic. > > > Something like this could work I think: > > > $usernamehost = explode(’.', $_SERVER['HTTP_HOST'], 2); > > > where I should need to change the router.php for sure ? > > > I have found an example for CodeIgniter, but I like the CakePHP way of > > programming more, so... this way is that I wanna go, but I need some > > help here. > > > The CI example is shown here: > > >http://andy.sinaptix.com/2007/08/22/username-as-subdomain-in-codeigni... > > > Any help is welcome !- Tekst uit oorspronkelijk bericht niet weergeven - > > - Tekst uit oorspronkelijk bericht weergeven - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---