Deprecated: Function create_function() is deprecated in /home2/blogwebhostingbu/public_html/wp-content/plugins/facebook-like-box-responsive/facebook-like-box.php on line 29
{"id":1706,"date":"2011-06-07T00:11:03","date_gmt":"2011-06-07T00:11:03","guid":{"rendered":"http:\/\/www.webhostingbuzz.com\/blog\/?p=1706"},"modified":"2011-06-07T00:11:03","modified_gmt":"2011-06-07T00:11:03","slug":"sub-domains-and-redirects-simplify-web-access","status":"publish","type":"post","link":"https:\/\/blog.webhostingbuzz.com\/2011\/06\/07\/sub-domains-and-redirects-simplify-web-access\/","title":{"rendered":"Sub-domains and redirects simplify web access"},"content":{"rendered":"

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