InMotion Hosting Support Center

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.example.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. 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.
  4. Click the Create button. You will then see a message stating it "has been created."

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.

Staff
35,822 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
40,817 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
26,229 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
40,817 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
11,186 Points
2014-10-17 6:16 pm
Unfortunately, there is not a method we would be able to provide to do so.
n/a Points
2015-06-14 3:22 am

Hi, please help me. How can I create a subdomain from www.forum.example.com to www.example.com/forum Please help me. Waiting for your reply

Staff
40,817 Points
2015-06-15 2:48 pm
Hello Abuvijay,

You would use the exact manner as described above.

Kindest Regards,
Scott M
n/a Points
2015-07-22 9:03 pm

Hello,

I would like to do some change into my website with out it going under construction. Should i creaet the sub domaine first; afther work on the web site and once everything is up to date, i could transfer it to my main domaine ?

Is it possible to install wordpress in a sub domain ?

Thank You

Staff
35,822 Points
2015-07-22 9:20 pm
Hello Denis,

How you want to work on your website, is up to you. If you are creating a website in a different space and under a different domain name then you can do so, but you would have to then MOVE that website to your primary domain name. So, if you consider that no problem instead of having a simple under construction page (the page can say anything - not just "under construction"). And, "YES" it's possible to install WordPress under a subdomain.

If you have any further questions or comments, please let us know.

Regards,
Arnel C.
n/a Points
2015-08-07 1:23 pm

I have a domain. If I create a subdomain for a family member to use, am I understanding it correctly that only I would have access through the Cpanel to this subdomain for adding, updating, deleting, etc, of the files in this sub domain?

Thank you.

 

Staff
26,229 Points
2015-08-07 3:08 pm
Hello Delmage,

Thank you for contacting us. There is only one cPanel login, this account has access to everything.

When you create a subdomain, it creates an additional FTP account for access to the files. But this account can be limited to a specific folder, and you do not have to share this password with anyone.

As far as access to the subdomain, it depends on how you are building the site. For example if you are using WordPress, they will only have access to the site software, not cPanel.

Thank you,
John-Paul
n/a Points
2015-08-07 6:38 pm

Thank you, John-Paul. Appreciate the quick response.

n/a Points
2015-10-23 9:09 pm

hi, i want to know this:

I have 3 domain names, mysite1, mysite2 and mysite3

and i want to create a blog for eachone  of this 3 sites in a subdomain because it´s not possible otherway, so if i create the subdomain "blog" for mysite1, will i be able to do the same for the other 2 sites as well? or the subdomains will have to be blog1, blog2 and blog 3? i mean i would like in my 3 sites the URL looks like: blog.mysite1.com,

just as clean as that, but i can see that when you create a subdomain it creates it in the root domain, so how do this works?

AND also, what happens if i create the blog subdomain inside the domain itself?

i mean in the file manager would look like this: public_html/mysite1/blog

is that a good idea? because i was reading this

article: http://www.inmotionhosting.com/support/edu/opencart/319-using-a-subdomain-to-store-your-images-in-opencart

so is thispossible and good/bad idea?

Thanks for your help on this,

Best Regards

 

Staff
40,817 Points
2015-10-26 9:03 am
Hello Angello,

You can certainly create blog.mysite1.com, blog.mysite2.com , etc. When you create the subdomain, it puts the new directory in the root of the domain name you are creating it for, not necessarily the root of the main domain.

The main domains root is public_html, so blog.mysite1.com's path would look like 'public_html/blog' .
The addon domain mysite2.com would have the blog directory under it's own root folder. Addon domains look a bit different as they have a folder in the public_html folder as well. The path for blog.mysite2.com would look like 'public_html/mysite2.com/blog'.

If you have mysite3.com, and want blog.mysite3.com, it will have a path similar to mysite2.com. It will look like 'public_html/mysite3.com/blog'.

You can use a subdomain to point to any folder/directory you want within your site, so yes, it is possible. It is not a bad idea to use them to separate major portions of your site. A subdomain is used in the article you referenced so the browser can download the images faster when bringing a page up.

Kindest Regards,
Scott M
n/a Points
2016-01-28 10:04 am

Hello everyone!

 

Hope someone can help me. I want to get a website with Inmotion but I want it to a subdomain of my current website that is hosted somewhere else. 

 

Is it possible? For example:

 

My current website/domain is www.business.co.uk (which is hosted, and I dont want to move it to Inmotion, somewhere else) and I want my Inmotion website to be a subdomain of it. For example: shop.business.co.uk

 

Can I do this with Inmotion and keep my original site with my other hosting company? 

 

Many thanks,

Joao

Staff
26,229 Points
2016-01-28 12:58 pm
Hello Joao,

Thank you for contacting us. Yes, this can be done by creating the subdomain in your cPanel, then pointing the 'A record' for the subdomain to your Shared IP.

Thank you,
John-Paul
n/a Points
2016-02-22 10:46 am

Similar quesrtion to Joao.  InMotion is managing my subdomain sub.website.com and it is working just fine.  My problem is getting the FTP account to work.  Do I need make some changes at networksolutions?  Here's the error..

Status:      Resolving address of ftp.sub.website.com

Status:      Connection attempt failed with "EAI_NONAME - Neither nodename nor servname provided, or not known".

 

Error:        Could not connect to server

 

Please advise. 

Thank you, 

Peter

Staff
40,817 Points
2016-02-22 1:48 pm
Hello Peter,

Instead of trying to connect to ftp.sub.domain.com, simply try sub.domain.com. That should allow you to connect to our server without issue.

Kindest Regards,
Scott M
n/a Points
2016-04-08 4:45 am

hello 

i want to ask about the sub domins that if i want to make my site multi languages 

for example : en.example.com for english and tr.example.com for turkish ar.example.com

so can i do that and is that will need to instal wordpress in each time true ?

Staff
10,077 Points
2016-04-10 3:25 pm
Hello Saleh,

This is possible and you should not have to install a new version of WordPress on each directory as you just need a multisite language plugin and then change the setting on each one.

Best Regards,
TJ Edens
n/a Points
2016-06-14 5:03 pm

I created a subdomain but spelled incorrectly.   Can I rename or delete and create a new directory with correct spelling?

Staff
6,526 Points
2016-06-14 7:44 pm
I advise deleting the subdomain entirely and making it again with the correct spelling.
n/a Points
2016-06-15 6:50 pm

hello..

i have primary domain called http://www.pasanganhidupku.com

now i added new domain as addon domain called http://www.s3kolah.com

then i just created a subdomain in s3kolah.com called mamiftahulhuda, so my new subdomain is http://www.mamiftahulhuda.s3kolah.com.

Note: my subdomain folder is located in s3kolah.com directory.

The problem is when i click link pointed to http://www.mamiftahulhuda.s3kolah.com, the address bar changed into http://www.s3kolah.com/mamiftahulhuda. And when folder is located in root domain the address bar changed into http://www.pasanganhidupku.com/mamiftahulhuda.

what i need is the address bar return into my real subdomain which is http://www.mamiftahulhuda.s3kolah.com

help me for that problem

Staff
35,822 Points
2016-06-16 9:55 am
Hello Faisol,

Sorry for the problem with the add-on domain s3kolah.com. The issue is that the domain is NOT pointed to our name servers at this time. This means that any definition for that domain that is created on our servers won't matter - these definitions are done within the DNS, but because the domain is not pointed to us, none of these definitions will apply. I hope that helps to explain it. In order to get the subdomain/domain definitions to work, you need to point the domain to us. You can find more about this issue in this tutorial.

If you have any further questions, please let us know.

Kindest regards,
Arnel C.
n/a Points
2016-06-20 7:32 am

how to add a data in subdomain? i have created a subdomain where to add the data of that subdomain?? cpanel root then?? there is a folder name or that subdomain am putting data in that folder and when i am opening the link it does not show anything. 

Staff
40,817 Points
2016-06-20 1:01 pm
A subdomain has its own folder. You would add the files and data in that folder.
n/a Points
2016-07-06 9:57 am

Dear Sir,

Thank you really for the videos so far. I like to ask this question:

I have a site www.example.com and a sub-domain mobile.example.com intented for mobile view.

How do I cause a permanent redirect for users with mobile phones who types www.example.com and it will automatically redirect them to mobile.example.com without them doing it manually.

Meanwhile, those with larger devices should still be redirected to www.example.com

 

Thank you sir.

Staff
35,822 Points
2016-07-07 6:47 am
Hello Kingsley,

First, I should point out that has become preferable to have one set of responsively designed website pages as opposed to having mobile and non-mobile pages. This is especially important in SEO. However, there many people still using mobile-specific sites as responsive design is still being adopted by many. You can still use our tutorial on redirecting to mobile pages.

If you have any further questions, please let us know.

Kindest regards,
Arnel C.
n/a Points
2016-07-14 5:22 am

Hi, I have site xx.com which is for selling my product and can be view by other visitor. I need another site but for just me can view the site. can i create it as subdomain?

For my main domain I use opencart, but can I use wordpress for by subdomain?

 

Thanks in advance

Staff
11,946 Points
2016-07-14 9:19 am
Sure, you can use whatever you want for your subdomain. If you want to be the only person to access it, you can password protect it using htaccess.
2016-07-20 8:26 pm
Hi - I created a subdomain using cpanel over 24 hours ago. (testing.dogpositive.com) When I try to access via browser I get a "testing.dogpositive.com’s server DNS address could not be found" message. Can you tell what is wrong?
Staff
35,822 Points
2016-07-21 7:20 am
Hello Adventuresniffer,

Sorry for the problem with the subdomain's DNS not working properly. Typically, DNS changes may take up to 24 hours to change. If you continue to have problems, please contact our live technical support department. They can re-push the DNS for your domains if necessary.

If you have any further questions or comments, please let us know.

Regards,
Arnel C.
n/a Points
2016-08-22 11:14 pm

Hello,

I create subdomain under whitegarlic.net, cart.whitegarlic.net, and it does not work.

 

Could you please check.

 

Best,

 

Channthoeun

Staff
11,946 Points
2016-08-23 8:35 am
You will need to reach out to the Support Department and they will be able to assist you.
n/a Points
2016-09-30 7:56 am

hello, 

I have a website registred in AWS and I want a subdomain to be registred in Inmotion.

I created the subdomain first, take the Ip adress and add it to a A record of the subdomain in AWS.

it's still don't work, I don't know if i'm missing something !

Many thanks 

Staff
11,946 Points
2016-09-30 10:20 am
Where is your DNS hosted? You'll need to add the DNS record to point to the IP address of your server here. Then it's a matter of setting up the subdomain in cPanel.
n/a Points
2016-10-07 12:04 pm

hello, 

it s solved i just hqd to wait for dns propagation.

thanks

n/a Points
2016-10-21 4:47 pm

Hi,

I went through all the posts above and found your support is very attentive. Indeed, thank you.

By the way, I am very much a beginner, and have a question about domains.

I know I would need a root domain as a base. What sort of occasions would I need to set up Sub-domain, Sub-directory, or Addon domain? What is the difference between them? Why do we need to differentiate using them?

Apologies for a basic question.

Staff
610 Points
2016-10-21 5:48 pm
Terry, there's no need to apologize. If we don't ask questions we miss opportunities for growth. We actually have an article outlining the differences between each of the different types of domains.
n/a Points
2016-10-22 5:35 pm

Thanks caseyb for the link. 

I understand there are 3 different domain stractures but what I do not understasnd is WHY they need these 3 diffrences. What sort of situations / conditions do we need Addon, Sub and Park? How should I distinguish each domain for use? What is the difference of website like www.abc.mydomain.com and www.mydomain/abc? I heard the former is called Sub-domain and the latter is called Sub-directory. What is the difference in these 2 ?   I would apprecaite your clarification. Many thanks

 

n/a Points
2016-10-23 9:21 pm

ThanksCaseyb,

I went through the tutorial you suggested above,but what I want to know is as to what situation we need to use Sub, Addon and Park as well as Sub-directory. It sounds to me that there must be a difference in usage depending on occasions. Could you explain on this or is there any tutorial on this? Many thanks

Staff
40,817 Points
2016-10-24 9:57 am
Addon domains are entirely separate websites, so if your primary domain is about dogs and you want to create a separate site about cats, then you would create an addon domain.

Parked domains are a way to have more than one domain name point to the same site. So if your dog site is called 'dogworld123.com' and you buy 'dogworld123.NET' you can set it up to point to the .com so that either one shows the same site.

subdomains are a way to organize your site. If you have a dog site and want to have a separate section for purchasing something, you may want to add your store to a subdomain like shop.dogworld123.com or store.dogworld123.com so people can go right to the shop. Visiting the domain itself dogworld123.com will allow them to see the main site.

Hope that helps!
n/a Points
2016-11-09 6:11 pm

I setup my subdomains, and now I ant to modify the theme and styles for each sub domain to be different from my normal domain. How do/Where do I setup those diferent themes? Is there a seperate login for each sub domain in wordpress I have to create? Help! 

Staff
35,822 Points
2016-11-10 7:58 am
Hello Shannon,

You will need to install WordPress for each subdomain if you want to create separate sites. You can use Softaculous to install each subdomain site very quickly. Once you have each site installed, you can easily change the themes for each site.

If you have any further questions, please let us know.

Kindest regards,
Arnel C.
n/a Points
2016-12-01 4:12 am

Hi,

I have created more that 5 subdomains before the subdomains was fine but after a few days the subdomains are unable to open I always get errors like these:

 

test.domain.com 

server DNS address could not be found.

  • Try running Windows Network Diagnostics.
DNS_PROBE_FINISHED_NXDOMAIN 

 

Is there another steps like setting DNS records? I mean do I need to set up a records for subdomains? I can see here that there is no records found on our A record on advance DNS zone.

Thank you

Staff
26,229 Points
2016-12-01 1:30 pm
If you are using a 3rd Party DNS host, you must also create the subdomains and 'A records' there.

If your problems persist, I recommend contacting Live Support so they can test your specific domain push out the DNS again if necessary.

Thank you,
John-Paul
n/a Points
2016-12-05 3:33 pm

Hi,

I created a subdomain and installed wordpress on it but it doesn't seem to be working.

Here is what I get when trying to access it:

This site can’t be reached

nyu.freedge.org’s server DNS address could not be found.

 

 

ERR_NAME_NOT_RESOLVED
Staff
40,817 Points
2016-12-05 6:31 pm
I see that the URL you provided can now be reached. My guess is that it was simply propagating, which can take up to 4-24 hours.

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.

53 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!