Sub-domains and redirects simplify web access


Sub-domains are useful. When you have your own domain name and a hosting account, you can create sub-domains.

Domain extensions such as .com and .ca are called top-level domains (TLDs). A second-level domain is a domain that is directly below a top-level domain, such as That’s what we usually think of as a domain name which we can register. The next level down would be a third-level domain, also called a sub-domain, such as or In fact, there can be multiple levels of sub-domain.

cPanel makes it easy to create sub-domains, as it’s done through a web-based interface and all the hard work is done automatically. By default, a cPanel sub-domain of would have its URL resolve to, but you can change that using a redirect. Combining a sub-domain with a redirect makes it possible to have short, elegant looking URLs that resolve to deeply nested paths.

For example, to more easily access each of the cPanel webmail clients via SSL, I made three sub-domains each redirected to an https URL:

  • redirects to
  • redirects to
  • redirects to

To create a redirected sub-domain in cPanel:

  1. Click Subdomains.
  2. Click Create a Subdomain.
  3. Enter the desired sub-domain name.
  4. Click Create.
  5. When you see the message indicating that the sub-domain was created, click Go Back to return to the Subdomains screen.
  6. Under the Modify a Subdomain section, click Manage Redirection.
  7. Enter the path to which you want the sub-domain to resolve, and click Save.
  8. Enter the new sub-domain in your browser, e.g., to see it work.

When working on early frameworks for a client web site, they might be accessed at a nested folder such as I create a sub-domain redirected to that URL. It’s far easier for me to remember, and easier for my client.

When travelling, I often upload digital maps, itineraries and other useful documents to my web server. These serve as accessible backups for me, in case I lose the paper files I’m carrying, and family can also access these. Again, to simplify access I create a redirected sub-domain such as

Once you realize how convenient redirected sub-domains can be, and how easy they are to create, I’m sure you’ll think of plenty of uses.

Add a Comment

Your email address will not be published. Required fields are marked *