Set up Wildcard Subdomains on OS X
June 24, 2011 by admin · Leave a Comment
Here is a good tutorial show you how to Set up Wildcard Subdomains on OS X:
I’m tailoring my examples to OS X since that is the platform I’m running on. However, they should work on any *nix based system with some massaging.
Handle wildcard subdomains with PHP
June 24, 2011 by admin · Leave a Comment
Here is a good tutorial show you how to Handle wildcard subdomains with PHP:
Subdomains can be a very handy way to make your urls more friendly looking. They can also be incredibly useful for membership driven websites to allow members to have their own custom subdomain. But how do make manage dynamic subdomains with PHP?
There is two parts to making dynamic subdomains work in this case. The first is updating your DNS and webserver to expect wildcard requests. On the DNS side its a simple matter of adding * as an ‘A’ record, or cname pointing to the primary domain or IP. In most cases if you are using shared hosting, you’ll need to contact your hosting provider to enable wildcard DNS on your account. Otherwise if you are on a dedicated server or virtual private server, this can be most likely handled by yourself, such as editing the DNS zone in WHM.