Using Subdomains And Add-on Domains
Subdomains are used to divide your primary website into different “categories”.
Each category, or subdomain, is then seen as a completely separate area of your website.
This is useful if, for example, you have an English language website, and you want to create a separate Spanish-language version of your site using the same “root” domain.
Your English-speaking visitors would visit your website by typing in your regular domain web address (e.g. http://yourdomain.com), and your Spanish-speaking visitors would access the Spanish version of your site by typing something like http://es.yourdomain.com.
Add-on domains are used when you want to add a new domain name to your existing hosting account instead of paying for new hosting.
There is also another type of domain called a “parked” domain. Parked domains basically point visitors to other domains while displaying the parked domain URL on the visitor’s browser.
The tutorial in this section shows you how to create both sub-domains and add-on domains.
The section below provides for more information on the differences between add-on domains, subdomains, and parked domains.
An add-on domain makes it possible to host two or more sites with two or more domains on the same hosting account. Add-on domains are useful if you want to register and promote another domain name but don’t want to pay the additional cost of having another web hosting account. In this case, (if your web hosting company allows it), the best solution would be to create an add-on domain.
An add-on domain, therefore, is just like having a separate web site. You host or point your add-on domain to a folder in the public_html folder of your main domain name. Like your main domain, you will need to register your add-on domain and set the nameservers for the add-on domain to point to the same nameserver as your main domain name.
If your main domain name is called domainname.com and your addon domain name is called addondomain.com , then you could access your add-on domain in one of the following ways:
Benefits Of Using Add-On Domains
One of the main benefits of using add-on domains is that it helps to optimize your web hosting space. The add-on domain uses the same space and bandwidth as your main account and has its own CGI and FTP access, as well as its own email accounts and web statistics, but it doesn’t have its own cPanel (web hosting manager) account.
Summarizing then, the benefits of using add-on domains include:
- Since typing “addondomain.com” into your web browser displays that exact domain name in the address bar, it’s like having a completely separate web site.
- You can create multiple domains and websites on the same web hosting account.
- you save money and web space by using one web hosting account instead of several hosting accounts.
- Your add-on domain shares the same resources as your main domain name (i.e. disk space and bandwidth).
- Your add-on domain will have its own FTP access, site stats, and cgi-bin.
- You can access your add-on domain using different web site addresses
A sub domain uses your existing domain name. It is a subfolder of your main domain name and does not have its own separate domain name.
So, for example, if your domain name is mydomainname.com and you install a blog inside a folder of that domain name called “blog’, then your blog would be located in a sub domain called “mydomainname.com/blog”.
A different variation of a sub domain that is also commonly used is “blog.mydomainname.com”. For example, Google.com’s Gmail service can be accessed by typing in the subdomain “mail.google.com” into your web browser.
A parked domain is a domain that is registered but does not have a web hosting account – it simply points to an existing domain. It is an additional domain you own that directs visitors to the domain name it is “parked” on top of. If a visitor types in the address of a parked domain name into their browser, they will be directed to the main domain name and they will see the exact same page they would get if they typed in the main domain name address.
A parked domain name is useful if you own a “domain name family” (e.g. domain.com, domain.net, domain.org, domain.com.au), or similar / related domains, but only want to promote one domain using all of these domains.
Note: Your parked domain needs to be registered and point to the same nameservers as your existing main domain name.
How To Create Add-On Domains And Subdomains In cPanel
Watch the video below or follow the step-by-step tutorials to learn how to create add-on domains and subdomains using cPanel.
Creating Add-On Domains And Subdomains In cPanel – Step-By-Step Tutorial
Log into your cPanel account …
Creating A Subdomain
Scroll down to the Domains section and click on Subdomains …
Adding a subdomain will create a new section in your website using any prefix you choose (e.g. “support”, “abc”, etc …).
Type in the name of your subdomain in the Subdomain field, then click the blank field in the “Document Root:” section. cPanel will automatically fill this section with the correct path information for your subdomain. Click the Create button when finished to create your new subdomain …
Your new subdomain is now set up and ready …
Creating An Add-On Domain
Scroll down to the Domains section and click on Addon Domains …
In the Addon Domain screen, enter your domain name in the New Domain Name field (no http:// or www is required).
Note: cPanel will automatically complete the “Subdomain/FTP Username:” and “Document Root:” fields.
Enter a strong password into the Password: field and confirm your password in the field below (you can use the built-in Password Generator feature of cPanel to create a secure password if you want), then click Add Domain to create your addon domain …
Domain parking is useful if, for example, you have registered a group of similar domain names (e.g. mydomain.com, mydomain.net, mydomain.org, mydomain.info, mydomain.co.uk, etc …), and you are not planning on building separate sites on each domain, but would still like visitors who type in any of the other domain extensions to see your main “.com” site.
In other words, you can use domain parking to display your mydomain.com website (live website) to users who type in mydomain.info (no website, just a domain) into their browsers.
To “park” a domain on top of another domain, first make sure that the domain’s nameservers have been set up correctly (see this tutorial for more information about setting up nameservers).
Log into your cPanel admin area and scroll down to the Domains section. Click on Parked Domains …
Enter the name of the domain you want to park and click on the Add Domain button to create a new parked domain …
You can have multiple parked domain names. You can also easily remove a parked domain using the cPanel Parked Domains feature …
Now you know how to create subdomains, addon domains and parked domains.
Click the link below to continue the tutorial …