Wildcard DNS and PHP
I’ve always been wondering how it works, and I’ve finally found out how it does. I will give a few simple examples how it works and how you can use it.
Step one : Make sure your server/domain allows wildcard DNS and that it is enabled on your server/domain.
Step two : Lets create a file called index.php
now before I continue with step 3, it is nice to know that the wildcard subdomain forwards to the index.php on the main domain so all the following domain pont to the same file.
- foo.domain.com
- bar.domain.com
- foobar.domain.com










