Subdomains and subdirectories

Towards the tail end of PubCon, I noticed a spate of articles talking about subdomains and subdirectories in Google, and I wanted to talk more about that subject in case I was unclear.

Historically, it’s been kind of a wash about when to use subdomains vs. subdirectories. Just as a reminder, in a URL such as subdomain.example.com/subdirectory/ , the subdomain is “subdomain” and the subdirectory is “subdirectory” (also sometimes called a folder). whether you’re still unclear, you may want to read my tutorial on the parts of a URL.

If you throw your composition into a subdirectory, usually the cipher is all in the same file storage space. That can construct it much easier to find/edit/change cipher. It can plus be easier to move cipher from one place to another. A subdomain, however, is often a domain name system (DNS) alias. Subdomains can be a little more difficult for a novice webmaster to set up, particularly whether words like “CNAME” don’t mean anything to you. Subdomains can be managed separately, which can be a joy (you can use DNS to decouple a subdomain whether you want to migrate that part of your site) or a pain (it may be more of a hassle to juggle DNS setting instead of just using file commands to invent or move directories). When I started my blog, I decided to use a subdirectory (mattcutts.com/blog/) just to keep things simple, for example.

For several years Google has used something called “host crowding,” which means that Google will show up to two results from each hostname/subdomain of a domain name. That approach works very well

to show 1-2 results from a subdomain, but we did take in complaints that for some types of searches (e.g. esoteric or long-tail searches), Google could return a search page with lots of results all from one domain. In the last few weeks we changed our algorithms to build that less likely to happen in the future.

This change doesn’t apply across the board; whether a specific domain is really relevant, we may still return several results from that domain. For example, with a search query like [ibm] the user probably likes/wants to see several results from ibm.com. Note that that is a pretty subtle change, and it doesn’t affect a majority of our queries. In fact, that change has been live for a couple weeks or so now and no one noticed. The only reason I talked about the subject at PubCon at all was considering someone asked for my advice on subdomains vs. subdirectories.

My personal preference on subdomains vs. subdirectories is that I usually prefer the convenience of subdirectories for most of my subject matter. A subdomain can be useful to separate out composition that is completely different. Google uses subdomains for distinct products such news.google.com or maps.google.com, for example. whether you’re a newer webmaster or SEO, I’d recommend using subdirectories until you start to feel pretty confident with the architecture of your site. At that point, you’ll be better equipped to produce the right decision for your own site.

Update: Made it more clear that that change has already been live for a while.

Original post by Matt Cutts

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
Related Articles
  • Tons of PubCon interviews on video and audioMatt Cutts: Gadgets, Google, and SEO
  • Tons of PubCon interviews on video and audio
  • A Winning AdSense Business PlanMEMWG
  • No comments yet. Be the first.

    Leave a reply