Link to home
Start Free TrialLog in
Avatar of Brant Snow
Brant Snow

asked on

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?
Avatar of L00M
L00M
Flag of United States of America image

It's at the domain.
The host must set up DNS records which points www.domain.com and domain.com to the same website.
Avatar of war1
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.
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.)
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.
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Sidenote:
OMG, I haven't laughed this hard in a long time. Good fun ahoffman:
https://www.experts-exchange.com/questions/22654366/Automated-scripting.html