Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is www a subdomain? [closed]

Tags:

dns

I recently purchased something.com.

When I visit something.com from my browser, I get the index page I uploaded on server. However, if I visit www.something.com, it shows Error 404.

So I create a sub-domain named 'www' and upload another index file there.

Now, www.something.com and something.com shows two different websites.

My question is, is 'www' a normal sub-domain? Or some special kind of sub-domain? If yes, how is it different from other sub-domains?

like image 513
aBhijit Avatar asked Dec 19 '13 11:12

aBhijit


People also ask

Can you have www on a subdomain?

Generally, the www prefix is not used when using subdomains. If you want to use the prefix with your subdomain, you can make a vhost file and add this behavior as part of your domain configuration.

Does www count as a subdomain?

So, www is a subdomain of your domain, which itself is a subdomain. The www can also be called a third level domain, since it is one level below your second level domain.

Is www subdomain special?

There is nothing special about the “www” subdomain other than tradition. Any string of letters can be used in a subdomain.

Is www default subdomain?

remember, the www is just a subdomain. Also no www is a commonplace these days, so maybe make the www.foo.com redirect to foo.com. It's even easier to type "google <Ctrl-Enter>", which adds both "www." and ".com" in most(?) browsers.

What is a subdomain?

A subdomain is any child domain of a parent domain. All 'branded' domain names are child domains of top level domains. These are the phrases to the left of the parent domain. For example in example.com, 'example' is the child or sub domain of .com.

Is WWW a subdomain or prefix?

Any character combination to the left of a period (.) in a domain name is a subdomain. So WWW is a subdomain. However, the WWW has some history that goes back to the web's early days. Back then it was more of a hint to the protocol and content. Does your website need to use the www subdomain prefix?

What does it mean when cookies are sent to a subdomain?

First it means that any user you're giving cookies to will send those cookies back with requests that match the domain. So even if you have a subdomain, images.example.com, the example.com cookie will always be sent with requests to that domain. This creates overhead that wouldn't exist if you had made www.example.com the authoritative name.

Should I choose a top-level domain or a subdomain?

Whilst you need to decide on a top-level domain when you choose a domain name, subdomains can be chosen at any point with minimal hassle. Registering a domain name actually gives you the rights to unlimited subdomains, including anything from “www.” to “abcxyz.”


1 Answers

is 'www' a normal sub-domain? Yes, it is. From the point of view of DNSs it is a totally normal subdomain.

is some special kind of sub-domain? Yes, it is, indeed. It is so commonly used that most Registrars and Hosting providers do automatically create it for you and permanently redirect it to the web server hosted with them.

in your case, it seems that this is not what happens. So, create it and permanently redirect it, instead of creating a new index page for it.

like image 194
PA. Avatar answered Oct 20 '22 05:10

PA.