How to use domain names with your hosting account.

Status
Not open for further replies.

Anna

I am just me
Staff member
Messages
11,733
Reaction score
578
Points
113
With your x10Hosting account you may create subdomains and addon domains from within the control panel. Using this functionality you are able to create multiple distinct websites, or even just have multiple domains for just one website.

Here is some information on using domain names with your web hosting account.

A domain's document root directory is a folder on your web hosting account that a specific domain name is assigned to. When a domain name is loaded in a web browser it will attempt to load files relative to its document root. Your web hosting account's main domain has a document root that is always the directory public_html. Every additional domain name on your account may have its own document root directory.

Subdomains are domains that are under a larger domain. For example, if your account has the main domain example.com, a subdomain could be a domain such as blog.example.com. A subdomain may have a unique document root from other domain names or share any existing document root.

Addon domains are separate domain names that you have control over, such as example-two.com. An addon domain may have a unique document root from other domain names or share any existing document root. If an addon domain shared the document root directory for your main domain, public_html, it is often referred to as a parked domain.

An example domain configuration following a potato farmer's hosting account he created to write about potatoes.

Once upon a time..
  • The farmer's web hosting account has the main domain: potatoes.x10host.com
  • He create a website on his computer and upload the website HTML and PHP files to the public_html directory on his hosting account.
  • Visitors to potatoes.x10host.com are then able to read all about his efforts farming potatoes.
  • One day he decides that also wants to have a blog about potatoes and share this year's potato harvesting insider news. (It's a going to be a great September!) So he creates a subdomain blog.potatoes.x10host.com using the document root directory public_html/blog. Now that he has the subdomain ready to go he installs the WordPress blogging software in this new directory.
  • At this time he now has two separate websites hosted - his main website about potatoes and a blog about potatoes, each on their own domain with their own set of files and scripts.
  • The following year the potato farmer's earnings allow him to register the domain name potato-farming.com. He wants this domain name to show his main website for visitors, so he adds the new domain onto his account as an addon directory with the document root public_html. (This is a special domain configuration often called a parked domain.)
  • He then creates a second subdomain under his new addon domain which is named blog.potato-farming.com with a document root that is again public_html/blog.
The potato farmer's final domain configuration:
  • Main domain: potatoes.x10host.com (document root public_html)
  • A subdomain for blog: blog.potatoes.x10host.com (document root public_html/blog)
  • A parked domain for his website that he purchased: potato-farming.com (document root public_html)
  • A secondary subdomain: blog.potato-farming.com (document root public_html/blog)

His website visitors would see the same website while accessing potatoes.x10host.com or potato-farming.com, since they have the same document root.Similarly, his website visitors would see the same website while accessing blog.potatoes.x10host.com or blog.potato-farming.com, since they have the same document root.

The end.

If you have any questions regarding domain names open a support thread in our community forums!
 
Status
Not open for further replies.
Top