You have the ability to create subdomains in cPanel. Sub domains function separately from your main domain. Let’s go over an example. If you have a forum for your site, you could create a subdomain called “forum” – and the address would be “forum.yourdomain.com”

Many people use subdomains for mobile versions for their website, forums, blogs, and stores. Subdomains are easily created in your cPanel. Let’s walk through setting up a subdomain.

If you are not pointed to InMotion Hosting's Nameservers, you must ALSO create the subdomain where your Nameservers are hosted, then point the subdomain's "A record" to your Shared IP address.

Create a Subdomain

  1. Log into your cPanel
  2. Go to the Domains section and click on Subdomains.
  3. subdomins_1

  4. Type in the name of the subdomain and select the domain to create it under. It will automatically create a folder for the subdomain in your public_html folder
  5. subdomins_2

  6. Click the Create button. You will then see a message stating it "has been created."
    subdomins_3

It can take up to 24 hours for a new Subdomain to show up on the web, or propagate.

Congratulations, you have added your first subdomain! Please check the next article on Setting up a Redirect for a Domain in your cPanel. If you missed our previous article, please see the Adding a Parked Domain to cPanel tutorial. For more information on this course please visit Managing your Domains in cPanel.

Continued Education in Course 203: Managing your Domains in cPanel
You are viewing Section 4: Creating a Subdomain in cPanel
Section 5: Setting up a Redirect for a Domain in your cPanel
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

n/a Points
2014-04-18 6:42 pm

I already have an inmotion hosting account for business purposes but was lookiing to establish a blog for a subject completely unrelated to  and I want my business.  My question then is, can I establish a blog without having the business part of my domain appear?  for example if my domain is www.wanttoblog.com, and I want to have blog called super cars, will people still see www.iwanttoblog.com?

Staff
17,207 Points
2014-04-18 6:58 pm
Hello Tom,

The answer is yes, you can have a blog that's not related to your other website. People will not see your other domain name if you use a different domain name. Depending on your account type, you register one or more other domain names through AMP. You can then create an add-on domain so that you run a second website that's not related to your first. You'd have to use a different domain name, because if you were to use a subdomain (as per the article above), it would still have your previous domain name in the URL.

I hope that explains it! Please let us know if you have any further questions.

Regards,
Arnel C.
n/a Points
2014-06-29 9:20 am

Hi Brad,

  I just have a simple question.

  cpanel provides subdomains like "test.example.com" for the domain "example.com".

  Is it possible to have subdomain like "example-test.com" or "test-example.com"?

  Basically i am trying to build a wordpress multisite.

Staff
19,283 Points
2014-06-29 4:46 pm
Hello kad,

Subdomains have a format like this: subfolder.example.com. Note the subfolder and domain name portions are separated by a . If you are looking to create something like test-example.com or example-test.com these would be considered regular domain names and would need to be registered as such. These would then be added to the cPanel as addon domains.

Kindest Regards,
Scott M
n/a Points
2014-08-17 3:52 pm

I'm going to point my domain name off of Network Solutions to InMotion. I am also trying to move my development website to InMotion. I suppose you will put that in a subdomain?

Is there anything I have to do at Network Solutions? I didn quite understand the warning up above 

If you are not pointed to InMotion Hosting's Nameservers, you must ALSO create the subdomain where your Nameservers are hosted, then point the subdomain's "A record" to your Shared IP address.
Staff
9,400 Points
2014-08-18 10:58 am
Hello creating a subdomain on the dns,

Thank you for your question. Your Nameservers determine who hosts your DNS.

Basically there are two options as explained below:
Be sure to allow up to 24 hours for any DNS changes to propagate.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul
n/a Points
2014-08-28 3:20 am
The article is so helpful. I got it in Google search with the search query "subdomain in cPanel" at the top of the list. Thank you
n/a Points
2014-10-08 11:29 pm

If i want to have a test subdomain for my website, what should i do to make it private?

Staff
19,283 Points
2014-10-09 8:17 am
Hello Carlos,

You can password protect the folder used for the subdomain that way only you can access it.

Kindest Regards,
Scott M
n/a Points
2014-10-17 5:51 pm

Is there a way to programatically create sub-domains?  In other words, have code create the sub-domain rather than manually doing it in cPanel?

Staff
9,036 Points
2014-10-17 6:16 pm
Unfortunately, there is not a method we would be able to provide to do so.

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

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

11 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

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: support@InMotionHosting.com
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!