What is the difference between a subdomain and a subdirectory?

Last updated: November 2, 2016

Available For:

Product: HubSpot Marketing
Subscription: Basic, Professional, & Enterprise

Subdirectories represent levels of pages within each subdomain of your website. For example, if you have a blog which is located on your www. domain at, www. is the subdomain and  /blog is the subdirectory. A post example would look like this:

Alternatively, you can set your blog as its own subdomain. Instead of www. you could set your subdomain as blog. or news., for example. A post URL would look like You'll notice that there is no /blog subdirectory. In this case you don't need that extra level of hierarchy since you've set blog. as the subdomain. 

Was this article helpful?