Page 1 of 1
dynamic creation of subdomains
Posted: Tue Jul 17, 2007 4:50 am
by shaki
We have one of our web applications developed in .php
What do you suggest to use with .php so we can create subdomains on the fly, check if desired name of subdomain is available, etc.
Thank you for any suggestion.
Posted: Tue Jul 17, 2007 5:07 pm
by kaYak
This blog post may be of some use, except probably not to use the redirect option:
http://photomatt.net/2003/10/10/wildcar ... b-domains/
Posted: Tue Jul 17, 2007 5:19 pm
by shaki
thanks for your 2 cents
We did enable wildcard subdomains on our server. I was hopping to hear from somebody who had an experience with dynamic creation of subdomains and possibly sample of working script.
Posted: Tue Jul 17, 2007 6:33 pm
by kaYak
I just setup the site I'm working on now so that users can have a subdomain for their dynamically created website. mod_rewrite in the public_html directory responds if the host name is not www and it sends the subdomain requested and the filename requested to a php script.