Domains, Subdomains and Subdirectories

Posted in Notes

Domains, subdomains, and subdirectories are all components of the hierarchical structure used to organise content on the internet. The terms can be confusing, here's what each means:

domain.name

A domain is a unique name that identifies a website on the internet. It typically consists of two parts: the second-level domain (SLD) and the top-level domain (TLD). For example, in the domain “example.com,” “example” is the SLD and “.com” is the TLD. Domains are used to navigate to specific websites and are part of the URL that users type into their web browsers to access a website.

subdomain.domain.name

A subdomain is a domain that is part of a larger domain. It precedes the primary domain name and is separated by a period. Subdomains are often used to organise and categorise content within a domain. For example, in the URL “blog.example.com,” “blog” is the subdomain of the domain “example.com.” Subdomains can be used for various purposes, such as hosting blogs, forums, or specialised sections of a website.

domain.name/subdirectory

A subdirectory, also known as a subfolder, is a directory or folder located within another directory or folder. In the context of websites, subdirectories are used to organise content within a domain or subdomain. They are part of the URL path that follows the domain or subdomain. For example, in the URL “example.com/blog,” “blog” is a subdirectory of the domain “example.com.” Subdirectories are often used to organise different sections or types of content within a website.


  • The website’s domain name is the main address used to access the website.
  • A subdomain is the subdivision of a domain name.
  • A subdirectory or subfolder is the directory or folder located on a domain or subdomain.

Domains are the main addresses of websites, subdomains are subdivisions of domains used for organisation, and subdirectories are folders within domains or subdomains used to further organise content.

Related Notes

December 2024

Simple Analytics: A privacy-focused alternative to Google Analytics

In an era where digital privacy concerns are at the forefront of online discourse, many organisations are reassessing their tools to ensure compliance with data...

Continue reading

November 2024

Simple steps to protect your privacy online

In today’s digital world, protecting your privacy online has become essential. With personal data constantly being shared, stored, and potentially accessed by unauthorised parties, safeguarding...

Continue reading

November 2024

Introduction to Bluesky

Making the most of Bluesky after coming from whatever Twitter (𝕏) has become involves exploring the platform's unique features, adapting to its smaller, community-driven culture,...

Continue reading

November 2024

Web application security testing

With the increasing dependency on web applications in daily operations, securing these applications is paramount to safeguarding data and protecting against breaches. This blog post...

Continue reading

October 2024

Cookieless website tracking and analytics

Cookieless website tracking is a method of collecting analytics data and monitoring website behaviour without the need for traditional browser cookies. Traditionally, cookies have been...

Continue reading

October 2024

What's going on between WordPress and WP Engine?

The disagreement between WordPress and WP Engine has sparked considerable debate within the WordPress community and could have important implications for users of the WordPress...

Continue reading

More Notes Posts