Wild card sub domain configurations in a web server software allow redirection of all non-existent sub domains to a main domain. In other words, if a user types an invalid sub domain name in a browser, the web server automatically redirects the request to the preferred domain. This feature was not available in IIS until Microsoft IIS 10.
The following sections illustrate the steps for deploying wild card sub domains in IIS 10 in various site configurations.
Your website is now configured with wild card sub domains.
You can easily add a wild card host header to an existing domain via PowerShell using the Set-WebBinding module
Import-Module WebAdministration; Set-WebBinding -Name "example.com" -HostHeader "example.com" -PropertyName "HostHeader" -Value "*.example.com"
Thanks for dropping by. Ready for the next blog?