InMotion Hosting Support Center

You may need to set up a wildcard subdomain, and this can be done within your cPanel account. A wildcard DNS record is a record that matches requests for non-existent domain names. A wildcard DNS record is specified by using the * symbol to create a record for the * The most common applications for a wildcard subdomain is for use with SSL or WordPress Multisite.

How to Create a WildCard Subdomain

  1. Log into cPanel.
  2. Click the Subdomains link in the Domains section.
  3. In the Subdomain field, place an asterisk * symbol there signifying that you are creating a wildcard subdomain.
  4. Choose the domain you want to create a wildcard subdomain for in the Domain section.
  5. The Document Root field will automatically generate a path for your wildcard subdomain. You can change the path as needed.
  6. Click the Create button.

    You will then see a success message to confirm the subdomain was setup.

Congratulations! You have now successfully set up your account for wildcard domains. You still may need to modify your .htaccess file. If you have set up wildcard subdomains for WordPress Multisite, it will automatically configure the .htaccess file for you.

Was this article helpful?
Continued Education in Course 203: Managing your Domains in cPanel
You are viewing Section 3: Wildcard Subdomains and DNS
Section 2: How to Set MX Records using the cPanel Zone Editor
Section 4: Setting up a 301 Domain Redirect in cPanel

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

n/a Points
2018-04-27 11:19 am

what will happen to an existing website on sub-domain (, once the wildcard sub-domain is configured?

3,859 Points
2018-04-27 11:46 am
Creating a wildcard subdomain does not affect the current records for the subdomains that exist already. The purpose is to serve as a "catch-all" DNS record for any subdomains that do not exist. For instance, would already exist and have DNS records to handle directing traffic. However, does not exist yet and therefore the * record would be the record used to direct traffic.
n/a Points
2018-03-13 7:35 am

please provide .htacess for wildcard subdomain for Laravel 5 if you have and example of it.

42,946 Points
2018-03-13 11:05 am
Thanks for the question about using a wildcard for .htaccess with Laravel. This answer provided through an online support community may be what you need: htaccess for domain and subdomain with laravel.

n/a Points
2016-11-25 3:21 am


There was a problem creating the sub-domain:

Directory paths cannot be empty or contain the following characters: \ ? % * : | " < >

13,821 Points
2016-11-25 11:00 am
Make sure you are setting a doc root path, which should correct the issue.

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

7 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!