User Experience Stack Exchange is a question and answer site for user experience researchers and experts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm curious if it's considered better practice to use a subdomain (e.g. or a directory (e.g. when linking to separate sections of a site.

Assuming both choices are equally easy to implement, which is better practice or more user-friendly?

My inclination is to have both implemented and then choose one style to redirect to the other. But will this be confusing? And if both are implemented, what type of link should be used in promotional or informational materials?

share|improve this question
Related:… – Ben Brocka Dec 15 '11 at 16:06
up vote 4 down vote accepted

Few years ago I would say that it heavily depends on the level of autonomy of different sections of a site, what is a measure of being separate. If user most often enter the site through typing main url, it can be better to prefer pathnames instead of subdomains.

But today modern browsers autocomplete url from any kind of substring, so this issue is mitigated.

The rule of thumb is nevertheless relying on degree of separation. Say is almost always better then

On the other hand, and are worse compare to and

Just because mail app and rss app are sO different that they would need one additional level of pages and is hardly better than

And one more thing we should keep in mind before making final decision. It is not a big deal, but different subdomains treated as different resources by javascript. It means that if you want to intercommunicate using iframes or XMLHttpRequest directly, without proxy-ing request, you should provide some additional steps. Moreover, not all issues are resolvable (or, at least, super easily resolvable). Modern Opera, for example, still don't support cross-domain ajax requests.

As for redirecting from subdomains to pathnames or vice versa, I'd rather not.

share|improve this answer

It makes no difference.

This question has been asked a lot on other SE sites - webmasters, programmers, stackoverflow so I won't delve into the technical aspects of which is better other than to say: There is no difference, other than cookies being specific to subdomains, which might be something to consider.

From a user experience standpoint - I would use for sections of a particular website pertaining a particular topic and for a substantial sub-site that features different functionality to the main site. Just a few examples of how I would go about it:<content-page>

As far as redirects go, the main decision you have to make is www or non-www.

Hope this helps.

share|improve this answer
It does make a difference when it comes to search engine link weight. – JohnGB Dec 15 '11 at 17:56

Both have their advantages and pitfalls. This is an old discussion among SEO guys, and so far there is no RIGHT answer, just some recommendations. I would recommend these links for your reading:

share|improve this answer

I have a preference for a directory structure, simply because the URL is more readable, acts as a breadcrumb and can be 'hacked' by the user for navigation.

Unless your store is a microsite with it's own navigation, I would avoid subdomains. I certainly wouldn't do both, that is confusing and could cause issues with SEO etc

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.