• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • 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?
0
Brant Snow
Asked:
Brant Snow
1 Solution
 
L00MCommented:
It's at the domain.
The host must set up DNS records which points www.domain.com and domain.com to the same website.
0
 
war1Commented:
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
0
 
L00MCommented:
No war1, it isn't.
0
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

 
war1Commented:
L00M,

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.)
0
 
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.

0
 
war1Commented:
angelIII, thanks for clarifying.  I agree with what you said.
0
 
ahoffmannCommented:
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
0
 
L00MCommented:
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.
0
 
L00MCommented:
Sidenote:
OMG, I haven't laughed this hard in a long time. Good fun ahoffman:
http://www.experts-exchange.com/Programming/Languages/Scripting/Q_22654366.html
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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