FREE WEBSITE ARTICLES
Free Web HostingFree Blog Hosting Find the Best Free Web Hosting Cheap vs Free Web Hosting Free Website Builder Free Website Templates What Is Free Web Hosting? Pros and Cons of Free Hosts Why Build a Free Website? Get Free Google Adwords Credit From Your Web Host Get Free Yahoo Ad Credits From Your Web Host Free Forum Hosting Free PHP Hosting Free File Hosting Free Domain Hosting Free Photo Hosting Free Video Hosting
Webmaster TopicsShared Web Hosting Image and File Hosts How to Make Money Online Subdomains vs Subfolders WordPress vs. Blogger Domain Names Shared vs. Dedicated IP Address Windows vs. Linux Web Hosting Database Web Hosting Canada/UK Web Hosting Plesk vs. Ensim vs. cPanel How Reliable is Your Web Host?
eCommerce WebsitesBuild an eCommerce Site Accept Credit Cards Online Best Domain Names Best Shopping Carts Free Shopping Carts Merchant Accounts SSL Certificates Payment Gateways
CMS Software ReviewsDrupal Hosting Review Best Joomla! Hosting Mambo Web Hosting Review phpBB Forum Hosting Review Plone CMS Hosting Review TYPO3 CMS Review Wordpress Blog Software Review Content Management Systems (CMS) Best Xoops Hosting Open Source CMS
Other Hosting ServicesDedicated Servers VPS/Multiple Domain Hosting What is Cloud Computing?
Subdomains vs Subfolders
Subdomains and subfolders are two ways of dividing up a domain. These two different approaches both look different in the URL. You would use a subdomain in a different situation than you would a subdomain. This article compares when it is most useful to use a subdomain versus a subfolder.
What Are Subdomains?
Technically, a subdomain is any division of the Domain Name System (DNS). This means that top-level domains (TLDs) are, technically speaking, subdomains because they divide up the Internet into .com, .net, .org, etc. Domains such as ed.gov or jetblue.com make up the next level of subdomain, then there are divisions of the domain, and so on down the hierarchy. However, in common speech, subdomain refers to the third division, the level in this hierarchy that comes after domain names.
I have placed each level down and to the right to indicate the hierarchy in the chart. But in an actual URL (Uniform Resource Locator), each subdomain appears to the left of the level above, so these New York Times URLs would look like this:
That is, subdomains precede the domain name and are separated from it by a dot.
What Are Subfolders?
Subfolders are an organizational strategy for grouping material on a website, both for the webmaster and for the reader. Subfolders should aid the visitor in understanding exactly what each page is/does, with brief, evocative descriptions. Unlike subdomains, subfolders are hierarchy divisions that are placed to the right of the TLD. This is a quick way to be able to identify the different structuring methods a website is using.
For example, on the New York Times site, not all divisions are subdomain divisions. There are also subfolders, for example:
This subfolder has its own set of subfolders including: world, national, nyregion, business, technology, science, health, sports, opinion, arts, style, and real estate, and these appear to the right of the folder, pages, like this:
That is, subfolders follow the domain name and are separated from it by a slash. Subfolders of the original subfolder are also separated by a slash and placed to the right.
When to Use Subdomains and Subfolders
Subdomains are, in general, used to indicate major subdivisions of a site. When we're talking about sections of pages, major means sections that run to thousands or tens of thousands of pages. You can see from the New York Times examples given above that not every division of the website is a subdomain. Only the very large ones are, while the majority of divisions exist as subfolders.
Another reason to separate a section of a site by using a subdomain is if it has a very different function or different type of file. This includes the ability to designate individual host servers, as well as separate functions such as mail and File Transfer Protocol (FTP). For example, Google has separate subdomains for maps, video, news, groups, and images:
However, Google's International section, its Accounts section, and its Help section, are all set up as subfolders:
Subdomains are also typically used to specify a server cluster. For example, the National Education Association "higher education" (he) subfolder is on a server cluster designated www2, so its web address looks like this.
Another use for subdomains is the private sites of individuals under a larger domain. This is usually the case with free web hosting.
Another element to consider in choosing subdomains and subfolders is how a server handles subdomains and subfolders. It has been pointed out that in the Internet Information System (IIS) used by Windows servers, subdomains are treated as unique websites and can therefore have independent settings for performance, logging, authentication, etc. In this case, the choice has added significance.
Related Article: Domain Names >>