Forum Moderators: buckworks & webwork

Message Too Old, No Replies

www.widgets.com or widgets.com

Is there a difference?

         

mbush27

3:33 am on Dec 11, 2004 (gmt 0)

10+ Year Member



Hello all,

I was recently setting up accounts and stumbled upon something. When purchasing domains, I would typically just enter "widgets" and select com, net, etc. When creating an account with my hosting provider, I would enter the domain name as widgets.com. I noticed that my domains would show up if I entered widgets.com, or www.widgets.com.
However, I recently obtained a new domain name where when I type widgets.com it comes up fine, but www.widgets.com is nowhere to be fine.
Can anyone explain this mystery to me?
Thanks!
Matt

tedster

3:47 am on Dec 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's a server configuration. Once you own example.com, your server can be configured to supply whatever resource you want for [anything].example.com - including www or nothing at all.

Not all hosts do this the same way. For instance, it is a common default set-up to map exmample.com and www.example.com to the same resource, but it's not required at all. They can be different, or one may not resolve, or one may be a redirect. I prefer to use a 301 (permanent) redirect for one or the other so that there's less chance of splitting the link pop, etc, across multiple URLs for the same resource.

rfgdxm1

2:53 am on Dec 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The full, correct answer is that widgets.com and www.widgets.com are technically 2 different sites. If I owned widgets.com, I could put up at widgets.com one site, and at www.widgets.com a totally different site with just a little DNS magic. www.widgets.com is actually a subdomain of widgets.com. By common convention www.widgets.com and widgets.com are set up as mirror sites. However, this is just a convention, and not a rule.

Also, DO configure your server such that both resolve. Best way to do so is set up a redirect from one to the other (which is your choice) via .htaccess on the server. This will drag everyone (including SE bots) to whichever of the 2 you want. I've seen LOTS of cases where one or the other just don't resolve. One case involved a commercial site run by a geek type who set it up that way on purpose. After I pointed this out to him, his response was people shouldn't be entering just widgets.com in their browser, but instead should be entering www.widgets.com. I politely suggested to him (with no success) that having potential customers get a DNS error because they left out the www was all kinds of clueless on a commercial site. ;)