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 <[email protected]> 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-codeigniter/ > > Any help is welcome ! > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
