sommcewce
sommcewce

Reputation: 73

The difference between http://example.com and http://www.example.com

When I was doing some web design, I found one interesting thing.

When I type

http://example.com/xxx/xxx

it always asks me for credentials. However, when I use

http://www.example.com/xxx/xxx

it logs me in directly! I know there is something with the cookie.

But what I really want to know is:

What is the difference between http://example.com and http://www.example.com?

Do tell me it is the browser automatically adding "www" to the url.

Thanks, : )

Upvotes: 2

Views: 7289

Answers (1)

Simon MᶜKenzie
Simon MᶜKenzie

Reputation: 8694

www is a subdomain like any other (e.g. http://math.stackexchange.com/). It's just a convention to have it point to the same place as the main domain. This answer has some good points about why you would use www.

Upvotes: 2

Related Questions