Wildcard Subdomain

How to create a wildcard subdomain in cPanel for using store subdomain extension

Wildcard subdomain allows you to point all non-existing subdomains to a specific folder in your account. It means that if you enter different subdomains (which are not created in your cPanel) in your browser, they all will show the same content that you uploaded to the folder set for the wildcard subdomain.

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

Step 1

Navigate to Domains > Subdomains

Step 2

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

Step 3

Go to the Zone Editor

Step 4

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):

Step 5

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.

Last updated