File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Meaningless Drivel and the fly likes Why do we need Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "Why do we need "www" in url typing?" Watch "Why do we need "www" in url typing?" New topic
Author

Why do we need "www" in url typing?

Rogerio Kioshi
Ranch Hand

Joined: Apr 12, 2005
Posts: 689


SCEA 5 (part 1), SCBCD, SCWCD, SCJP, CLP, CLS
chris webster
Bartender

Joined: Mar 01, 2009
Posts: 1772
    
  14

In a lot of cases we don't. You can often get to a website by just typing the domain into your browser without the "www." and you will still wind up in the same place. Sometimes your browser will add the "www." automatically to your request, or the domain will have been set up so that requests for "www.mydomain.com" and "domain.com" are handled the same way. Also, some domains will use the first part of the URL e.g. "www." or "mail." etc to direct requests to a particular part of the site.

See http://computer.howstuffworks.com/internet/basics/question180.htm


No more Blub for me, thank you, Vicar.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11406
    
  16

don't forget that we used to also have to type "http://" as well...


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

we also have file:///C:/Documents and Settings/user1/Desktop/


SCJP
Visit my download page
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18655
    
    8

I had a look at my browser bookmarks. Of the first 6, only 3 of the URLs start with "www".
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2853
    
  11

It's anachronistic, but one of those things that just persists because it's always been that way. It used to be you might want gopher.mysite.com, ftp.mysite.com, and www.mysite.com to resolve to different physical machines. However, these days mysite.com will resolve to www.mysite.com for nearly all values of mysite.com. Try typing in coderanch.com and see where that gets you.
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4659
    
    5

Greg Charles wrote:It's anachronistic, but one of those things that just persists because it's always been that way. It used to be you might want gopher.mysite.com, ftp.mysite.com, and www.mysite.com to resolve to different physical machines. However, these days mysite.com will resolve to www.mysite.com for nearly all values of mysite.com. Try typing in coderanch.com and see where that gets you.


Even back in ancient times it was mostly redundant, since you would specify the protocol:
ftp://ftp.mysite.com
http://www.mysite.com

No modern browser makes you enter it.

The double slash is even worse. It never made sense. Even TBL says it was a mistake.
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

thre is one website in the world that doesn't start www
but for the life of me i can't remember whuich one.
dennis deems
Ranch Hand

Joined: Mar 12, 2011
Posts: 808
Wendy Gibbons wrote:thre is one website in the world that doesn't start www
but for the life of me i can't remember whuich one.

Only one? Perhaps Wikipedia knows which it is. https://en.wikipedia.org/wiki/Wikipedia
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why do we need "www" in url typing?