Webaddress for WWW or without WWW

I noticed today in a search engine forum on another site, one poster was saying he had sites under both

http://www.exampple.com and http://example.com

and was wondering if he’d get penalized for having a mirror site.

What eactly is the difference? I just assumed leaving off the www was a shortcut.

Also is there anyother thing besided www that coud go there?

“www” has no special meaning in the Domain Name System. If you have registered a domain name, say frobozz.com, you can put web sites, or any type of site, at frobozz.com, www.frobozz.com, snoopy.montana.frobozz.com, not.a.web.site.frobozz.com, etc.

example.com” would be the root domain and “www.example.com” would be a subdomain of it, which can either be a separate site, page, or the same as the root domain’s site.

When you purchase “example.com”, you essentially control all subdomains underneath it. Domain names work backwards, which means you can add to the front of your domain if you want. You could have www.example.com, and forums.example.com, or even multiple levels such as welcome.to.my.website.example.com.

Generally, how many subdomains you can add depends on who runs your nameservers. Most hosts have a limit on how many you can have based on how much you pay.

I don’t know at all about how search engines penalize subdomains.

“boards” (Look up at your address bar!)

Well, exampple.com and example.com would be two different domains, but assuming the first was a typo, the www part is just part of the webserver configuration.

Not completely true, subdomains can have their own DNS records that point to completely different IP addresses. However you are correct, if they happen to point to the same machine then the webserver can differentiate them based on what is specified in the Host: header of the incoming HTTP requests.

FYI that was a typo

It should be

http://www.exapmle.com

http://example.com

A couple of other actual commercial examples of non-www prefixes - support.sas.com (which is different from www.sas.com, and www.support.sas.com doesn’t work), and webmail.shaw.ca (which is different from www.shaw.ca, although www.webmail.shaw.ca does resolve but just turns back into www.shaw.ca). Those are just two that I use very frequently; I’ve run into other non-www prefixes before.

Interesting how insistent the board software is about making anything in the www.whatever pattern into a link (even if you delete the [ u r l ] codes in the preview)!

Argh! :smack: Sorry for three messages in a row - in my first message it should have said www.webmail.shaw.ca turns into webmail.shaw.ca.

If you want to suppress it, uncheck the little box below your reply text that says “Automatically parse links in text”.

Then you can write whatever.you.want.com.

There is no such term as “root domain.”

Root is the implied dot at the end of the URL. The “com” (or org, or net, or fr, or what have you) is the “top-level domain” or TLD. What you buy from registrars is the second-level domain, usually just called the domain name (even though that’s not precise, everybody understands what it means).

My mistake. Sometimes when dealing with registrars (admittedly some time ago) this term comes up in this fashion but it’s not correct.

As to why the ‘www’ appeared there in the first place — in the early days of the Web, it was commonly used to differentiate an institution’s web server from a server that used another protocol. The protocol (on a browser) is indicated in the URL at the very front. E.g. for Hypertext (the one used by the Web) it’s http. Early browsers could often handle other protocols, but the ability to integrate graphics made Hypertext the favorite. Since the Web & http by far dominates modern information servers, the ‘www’ is no longer necessary.

Actually, I’m not sure it was ever strictly necessary; theoretically http://ftp.confusion.gov could resolve to a website, but I don’t think it would actually be done . ( It might be a problem for an ftp program that assumes ‘ftp’, but I’m not sure about that.)

Other protocols used on the internet besides http -

ftp - File Transfer Protocol
gopher - a simple text-based database, based on nested lists. The main competition when the Web was new.
WAIS - Wide Area Information (Search?/Server?) a database to which searches could be submitted.
nntp - news (i.e. Usenet)
smtp - Simple Mail Transfer Protocol; used for e-mail

Note : It’s been a while since I knew this better, so I may have some details wrong; hopefully someone can correct me if need be.

You did this on purpose, right? :dubious:

Obviously I had severe problems with trying to type

It should be

http://www.example.com

http://example.com

The convention to use ‘www’ arose out of various different ways of indicating such a server with a prefix. MIT has kept the ‘web’ prefix as an alternative all this time, and the following all lead to the same page:

Actually, all major browser can still use other protocols. SSL (accessed via a web address that begins with “https”) is the one most people are familiar with, but ftp and others are still supported.

The first qualifier in an URL has no meaning to the application, be it “ftp” or “boards” or anything else. Only the protocol, specified before the colon, is interpreted.

And, it should be noted while we’re being pedantic about naming conventions, the left-most qualifier in an URL is generally referred to as the host. The host name for web servers is by convention “www” (and “ftp” for FTP servers, etc.), but it doesn’t have to be.