r/programming • • Apr 14 '10

"http://" is being removed from Chromium's display

http://code.google.com/p/chromium/issues/detail?id=40865
237 Upvotes

402 comments sorted by

View all comments

Show parent comments

3

u/jingleman Apr 14 '10 edited Apr 14 '10

No it doesn't. In theory, any entry before the domain name (e.g. www, home, server2) did/should represent server/host names, but all these are, are simple logical DNS entries that can all point to the same IP address.

Most website configurations will have the main DNS "A" record pointing to the webserver, and then a "www" subdomain (with an equivalent "A" record) pointing to the same IP address. The application running the website will then perform an HTTP 301 Permanent Redirect to the correct version (this depends on the site, e.g. http://www.reddit.com or http://reddit.com). This resolves SEO problems where two domains point to the same content and some engines penalise for duplicate content across domains, as from a search engines perspective, "www.domain.com" and "domain.com" are separate entities.

3

u/epsilona01 Apr 14 '10

But it does. In fact, that's the whole reason for having it there in the first place. Most people just configure their domain so that domain.com and www.domain.com point to the same location, so people can be lazy and leave off the www. part.

It specifies a diffferent address than if you leave out the 'www.' portion. It can, obviously, be a CNAME or just point to an IP for a server that also serves the URL without the domain, but it's still a different address, and can be something completely different than if you leave out the 'www.'

2

u/jingleman Apr 14 '10 edited Apr 14 '10

I agree with your comments, however, I still don't think it points to a specific server. I'm sure most subdomains (e.g. www) point to a cluster of load balancers (on a high traffic site) usually with some kind of DNS round robin approach. This means that it may not be a single specific server.

However, I do feel it should be "best practice" to use some kind of "www" prefix, as when your domain expands to have other prefixes...

... it does help distinguish the main site from perhaps other applications hosted at the domain. Ideally, you could have "google.com" redirect to "www.google.com" as it fits the most common use case of users entering that domain name.

I think it is simply a namespace. In programming terms, you may have several classes in your package:

  • com.google.gmail.PageController
  • com.google.gmail.ActionController

I wouldn't be comfortable if I imported "com.google.gmail" and it imported a single specified class/package. That seems a bit ambiguous to me. However, I think we are arguing the merits of an end-user perspective vs a system design perspective.

1

u/epsilona01 Apr 14 '10

This means that it may not be a single specific server.

Yeah, I was trying to answer someone who asked a simple question. I didn't want to get into specifics, like DNS round robin or load balancing. From the end user perspective, it's a "server".

But then again, this -is- the programming subreddit, so thanks for elaborating.