Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  Web Hosting FAQ  >  Steps to Use the Wildcard Subdomains

Steps to Use the Wildcard Subdomains

 2 min

When you want to redirect all visitors to your main website regardless of the subdomain through which they access your website, Wildcard subdomains play a key role.

Simply speaking, when a wildcard subdomain is used to access your site either via ww.yourdomain.com or wwwwww.yourdomain.com, it won’t matter at all. This means that they will still be taken to the home page.

To create a Wildcard subdomain, follow the below steps:

• Log in to cPanel.

• Navigate to Subdomains.

• Type in * in the “subdomain” field.

• Select yourdomain.com from the drop-down list.

• Ensure that you select the same Document Root for the Wildcard subdomain as the one for yourdomain.com.

So, your wildcard subdomain will be *.yourdomain.com and will have the same Directory Root (if it isn’t defined otherwise) as yourdomain.com.

Special Offer!
For our Knowledge Base visitors only
Get 10% OFF! on Premium Hosting
Offer Valid till:
59
MINS
59
SECS
STORYSAVER
Claim Your Discount
No thanks, I'll pass
Note: Copy the coupon code and apply it on checkout.