Grant Cox wrote:
> What you want is a wildcard subdomain.  Register in DNS
> *.yourdomain.com, and handle the same in your webserver, pointing to
> your cake app.
>
> Then the first step in your app (in beforeFilter) should be to look at
> the env('HTTP_HOST') to determine if the subdomain requested is valid
> (matching a user account or whatever).  If not, then 404, or show a
> "account not found" page, whatever you like.

Can you tell me how to register dns ? I am still using my localhost
for testing at the moment (with host modification so that it looks
like in the real server.)

shall i modify the .htaccess as well ?

thank u


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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