Why we need wildcard sub-domain and what is the wildcard sub-domain?
When you are creating multiple network site or you will allow user to create own site for them on your domain, for this automation process you need Wildcard sub-domain.
When you have fixed number of sub-domain that time you really don’t need to create Wildcard Sub-domain. Wildcard Sub-domain is not related to WordPress only, when you are develop any system base on any platform or framework and you want huge number of sub-domains that time you will use Wildcard Sub-domain.
Wildcard Sub-domain is just like *.yourdomain.com
When you will try to access any Sub-domain on yourdomain.com
that time you are redirected to your main domain directory or to the Document Root you have choose at the time of creating Wildcard Sub-domain.
To create wildcard sub-domain following the steps:
- Login to your hosting control panel.
- Find for Sub-domain under Domains section and click on that.
- Enter the
*
in Subdomain text field. - Choose your domain.
- Select your Document Root where you have install WordPress or Your application where you want to point Sub-domain.
- Click on create.
That’s it you have created wildcard Sub-domain.