Sub-domains are useful. When you have your own domain name and a hosting account, you can create sub-domains.<\/p>\n
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 webhostingbuzz.com. 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 sales.domain.com or www.domain.com.. In fact, there can be multiple levels of sub-domain.<\/p>\n
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 dog.domain.com would have its URL resolve to domain.com\/dog, 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.<\/p>\n
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:<\/p>\n
To create a redirected sub-domain in cPanel:<\/p>\n
When working on early frameworks for a client web site, they might be accessed at a nested folder such as domain.com\/clients\/workshop\/empire-surfboards\/master.php. I create a sub-domain redirected to that URL. It’s far easier for me to remember empire.domain.com, and easier for my client.<\/p>\n
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 france.domain.com.<\/p>\n
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.<\/p>\n","protected":false},"excerpt":{"rendered":"
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 webhostingbuzz.com. That’s what we usually think of as a domain […]<\/p>\n","protected":false},"author":134,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[143,74],"tags":[],"yoast_head":"\n