php forum
php mysql forum
php mysql smarty
 
Topic Options
#210342 - 04/26/01 08:06 PM (OT) To www or not?
BillD Offline
Member

Registered: 07/28/00
Posts: 277
This is perhaps a bit off topic but... There can be confusion caused if somone logs into forums by going to http://www.mysite.com/ and then later returns to http://mysite.com/ because the browser won't send the cookie back. I want to embed some javascript in the main page to make sure that either everyone always uses the www or everyone always omits it (if they try to go to the wrong one the browser gets redirected to the right one).<br /><br />Now the question: Is it better to direct everyone to http://www.mysite.com/ or http://mysite.com/? I'm tempted to go with http://mysite.com because it is shorter, but I see that Ebay redirects to http://www.ebay.com. Is there some advantage to doing it the Ebay way (e.g. could there be trouble if a http://ads.mysite.com is added later--I don't know how these work), or is it arbitrary? Thanks.<br /><br />Bill Dimm, MagPortal.com - [:red]free</font color=red> feeds for your site.
_________________________
Bill Dimm, SaveTheFreeWeb.com

Top
#210343 - 04/27/01 12:21 AM Re: (OT) To www or not? [Re: Brandon Crystal]
noox Offline
Journeyman

Registered: 04/19/01
Posts: 109
Loc: Austria/Salzburg
Yesterday I looked at the cookie documentation and wrote a post about that (bottom).<br /><br />If the cookie domain would be set to mysite.com instead of www.mysite.com it should work for both with and without the www and you do not need any forwarding.<br /><br />nòóx<br /><br />Downhill Rangers
_________________________
nòóx
_____________________
www.dh-rangers.com, www.downhill-board.com

Top
#210344 - 04/27/01 05:59 AM Re: (OT) To www or not? [Re: hPm]
BillD Offline
Member

Registered: 07/28/00
Posts: 277
I've posted a reply on the other thread. The domain= stuff just doesn't work.<br /><br />Bill Dimm, MagPortal.com - [:red]free</font color=red> feeds for your site.
_________________________
Bill Dimm, SaveTheFreeWeb.com

Top
#210345 - 04/27/01 07:06 AM Re: (OT) To www or not? [Re: Brandon Crystal]
sixpack69 Offline
Coder

Registered: 05/11/99
Posts: 833
Loc: Kansas, USA
Not getting into the code, I'd suggest using the www.mysite.com. Even though omitting the www is shorter, even novice computer users can spot that www immediately, and it's becoming even more common to have that at the beginning. Having an address like myth.jccc.net really can cause some confusion for some of my newbies. []/testimages/icons/crazy.gif[/]<br /><br />Just a perspective from someone who is www-less. []/testimages/icons/wink.gif[/]<br /><br /><br /><br />[]/testimages/icons/smile.gif[/] 6 []/testimages/icons/frown.gif[/]<br />Screamers
_________________________
<img src="/threads/php/images/graemlins/smile.gif" alt="" /> 6 <img src="/threads/php/images/graemlins/frown.gif" alt="" />
Screamers

Top
#210346 - 04/27/01 08:45 AM Re: (OT) To www or not? [Re: vmcknight]
BillD Offline
Member

Registered: 07/28/00
Posts: 277
Thanks for the reply. I think your situation is a bit different though. When someone sees http://myth.jccc.net they could easily think that http://jccc.net or http://www.jccc.net are part of the same site. <br /><br />In my case the user can enter http://SaveTheFreeWeb.com or http://www.SaveTheFreeWeb.com and they wind up at the same location either way, it's just a matter of whether or not they see a "www" in the URL where they really wind up. One added argument for stripping the www is that it makes the URL more easily fit into the little location box in the browser. I'm a little surprised that you say having a www is becoming more common. Tim Berners-Lee admitted the www was a bad design decision--I figured people would gradually migrate away from it if there was no technical problem with doing so.<br /><br />Bill Dimm, MagPortal.com - [:red]free</font color=red> feeds for your site.
_________________________
Bill Dimm, SaveTheFreeWeb.com

Top
#210347 - 04/27/01 08:54 AM Re: (OT) To www or not? [Re: Brandon Crystal]
sixpack69 Offline
Coder

Registered: 05/11/99
Posts: 833
Loc: Kansas, USA
Well I say www is becoming more common from a complete newby perspective. The addresses I see on TV on both commercials as well as advertising for movies and whatnot nearly always list a URL at the bottom of the screen and the URLs that don't contain www are far and very few between. I surf quite a bit and if I glance at a URL that I have to type in manually, I'm sometimes taken off guard if it doesn't begin with www. Perhaps I'm not visiting the right locations or noticing the right commercials. My perception has been the www has become standard and a lot of businesses are sticking with it for fear of having an 'obscure' and forgettable address. I have no access to statistics though so perhaps there's a trend to move away from this www business that I am not privie to or have not noticed.<br /><br />My perception is certainly not fact, perhaps others are getting used to omitting the www from addresses and such. But I don't see it myself. []/testimages/icons/smile.gif[/]<br /><br /><br /><br />[]/testimages/icons/smile.gif[/] 6 []/testimages/icons/frown.gif[/]<br />Screamers
_________________________
<img src="/threads/php/images/graemlins/smile.gif" alt="" /> 6 <img src="/threads/php/images/graemlins/frown.gif" alt="" />
Screamers

Top
#210348 - 04/27/01 08:57 AM Re: (OT) To www or not? [Re: Brandon Crystal]
sixpack69 Offline
Coder

Registered: 05/11/99
Posts: 833
Loc: Kansas, USA
Now that I say that, I just visited the stratics.com forum. []/testimages/icons/smile.gif[/] Perhaps I'm seeing what I want to, who knows. []/testimages/icons/crazy.gif[/]<br /><br />[]/testimages/icons/smile.gif[/] 6 []/testimages/icons/frown.gif[/]<br />Screamers
_________________________
<img src="/threads/php/images/graemlins/smile.gif" alt="" /> 6 <img src="/threads/php/images/graemlins/frown.gif" alt="" />
Screamers

Top
#210349 - 04/27/01 02:57 PM Re: (OT) To www or not? [Re: Brandon Crystal]
Eileen Offline
Master Hacker

Registered: 05/11/99
Posts: 3701
Loc: Los Angeles
My instinct has always been to go for the short version minus the useless, space-wasting, difficult-to-pronounce, "www" but didn't you conclude in your other thread that for cookie purposes it was the best bet?<br /><br />[]http://www.wopr.com/w3tuserpics/Eileen-sig.gif[/]
_________________________
[]http://www.wopr.com/w3tuserpics/Eileen-sig.gif[/]

Top
#210350 - 04/27/01 04:42 PM Re: (OT) To www or not? [Re: Chris Schreiber]
BillD Offline
Member

Registered: 07/28/00
Posts: 277
Actually, cookie-wise I don't think it matters. If you go to http://mysite.com and get cookied, then go to http://www.mysite.com the cookie won't get sent (I believe it is the same if you switch the ordering too). I don't know if it's the same in all browsers, but that's the way it works in Netscape 4.7 (I just tried it).<br /><br />Bill Dimm, MagPortal.com - [:red]free</font color=red> feeds for your site.
_________________________
Bill Dimm, SaveTheFreeWeb.com

Top
#210351 - 04/27/01 05:22 PM Re: (OT) To www or not? [Re: Brandon Crystal]
Eileen Offline
Master Hacker

Registered: 05/11/99
Posts: 3701
Loc: Los Angeles
Another brite idea bites the dust...<br /><br />[]http://www.wopr.com/w3tuserpics/Eileen-sig.gif[/]
_________________________
[]http://www.wopr.com/w3tuserpics/Eileen-sig.gif[/]

Top


Moderator:  Deb 
Who's Online
0 registered (), 24 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Spell Check [beta]
by Bill B
Today at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Today at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Today at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Today at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks