How to create wildcard subdomain in cPanel

Wildcard subdomains allow you to point all the subdomains ( existing and non-existing ) to a specific folder in your account. It means that if you enter any subdomain in your browser ( for example, test.domain.com – not existing, or blog.domain.com – existing), it will show the same content that you uploaded to the folder for the wildcard subdomain.

In order to create a wildcard subdomain, please, follow the next steps:

1) Log in your cPanel

2) Navigate to the menu ‘Subdomains’ under ‘Domains’ section

wildcard_subdomain_1

3) Create a subdomain‘*’ pointing it to the necessary folder ( you will need to specify the path in the field ‘Document Root’ ).

wildcard_subdomain_2

4) Go to the menu ‘Advanced DNS Zone Editor’

wildcard_subdomain_3

5) Make sure that there is an A record for *.yourdomain.com created and pointed to the server IP address ( it could coincide with the IP address of your main domain or ftp.yourdomain.com is pointed to).

wildcard_subdomain_4

6) Now you will need to wait until the propagation is over ( it should take N seconds, where N – is TTL for this A record; you can edit it manually and reduce the number to speed up the process ) and then the wildcard subdomain will work correctly.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s