PDA

View Full Version : Sub-domains


hinote
11-07-2007, 05:47 AM
Hi,
what is the correct method of linking to a sub-domain.
Is it
http://www.xxx.yyyyyy.com
or
http://xxx.yyyyyy.com

In other words, should the 'www' be included or not.?

mit
11-07-2007, 07:40 AM
In the Domain Name System (DNS) hierarchy, a sub-domain is a domain that is part of a larger domain. For example, "example.com" is a subdomain of the "com" top-level domain (TLD) and "www.example.com" is a subdomain of "example.com"

So, a subdomain should be just like - http://xxx.yyy.com

JohnW
11-07-2007, 08:31 AM
>"example.com" is a subdomain of the "com" top-level domain

Exactly. A domain like example.com is also best described as a root domain. www is a subdomain of the root domain. You should make all of your navigation consistent with xxx.yyyyyy.com and there should be a 301 redirect from www.xxx.yyyyyy.com to xxx.yyyyyy.com to make sure you don’t end up with a problem.