• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 164
  • Last Modified:

What if someone doesnt type the www portion of your web url?

If someone enters the name of a website url in the address bar but leaves out the www. how do you make it forward to the www.websiteurl.com

For example if i just type in google.com or yahoo.com to the address bar I get taken to http://www.google.com or http://www.yahoo.com

If i type in homestarrunner.com or bionovix.com I get taken to http://homestarrunner.com or http://bionovix.com (no www in the address).  The site loads up right but at my company we have some replicating site issues that only work correctly when someone is located at the www.website.  Is this a setting on the domain or is this done through some sort of javascript or php?
Brant Snow
Brant Snow
1 Solution
It's at the domain.
The host must set up DNS records which points www.domain.com and domain.com to the same website.
Greetings thawts !

This is done through the autocomplete feature of Internet Explorer or whatever the browser that you are using.  So if you type google.com, it will go to http://google.com  In the case of Google, this is the same as http://www.google.com 

If you type bionovix.com, the browser will point to http://bionovix.com 

Best wishes, war1
No war1, it isn't.
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.


What isn't?  When I type bionovix.com in Firefox or Internet Explorer, the browser will point to http://bionovix.com   The browser adds the http://  prefix. (It is really done in registry.)
Guy Hengel [angelIII / a3]Billing EngineerCommented:
before this get's into a offtopic discussion:
the question is (IMHO) about the www. part and not the http:// part not being entered.

but, if both parts are omitted, then indeed the browser puts the default protocol http:// in front of websiteurl.com,
while the DSN server has to point both addresses to the same web server.

angelIII, thanks for clarifying.  I agree with what you said.
you need 2 things to do:
  1) you must have a DNS entry for your domain (without the www.)
  2) you need to have a web server listening on that domain (this is most likely done using a virtual host inside the web server)
ready you go
Yeah, sorry I wasn't more clear war. I was saying exactly what angel said. The browser is not responsible for adding the www part. The http part, yes.
OMG, I haven't laughed this hard in a long time. Good fun ahoffman:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now