which way should i go.. www or not?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Guest
Archived from groups: microsoft.public.windowsnt.misc (More info?)

what the.. "still logged in"

hey now!
this www thing realy necessary

http Links work with or without the WWW infront of the domain. My log-out php functions have big bugg. If user logs in one way then trys to log out the other it does not work. I'm about to change all my urls to relitive paths. and..
any info before i do this would be great, which way should i go.. www or not?
 
Archived from groups: microsoft.public.windowsnt.misc (More info?)

In article <CF1E2717-D9C2-40B6-B95E-ABE18CB6C78E@microsoft.com>, "=?Utf-8?B?bXRzMDQ=?=" <anonymous@discussions.microsoft.com> wrote:
|what the.. "still logged in"
|
|hey now!
|this www thing realy necessary
|
|http Links work with or without the WWW infront of the domain. My log-out php
| functions have big bugg. If user logs in one way then trys to log out the
| other it does not work. I'm about to change all my urls to relitive paths.
| and..
|any info before i do this would be great, which way should i go.. www or not?
|

The links "work" without the www in front because either your browser is
automatically adding it to the front if it fails without it (IE can do this,
and probably other browsers, too), or there is a redirection going on at the
domain itself (usually a function of the DNS server where the name gets
resolved), or there is an alias for the computer either in the DNS server, or
perhaps the computer itself.
In your scripts, etc., it is probably best to use the real name of the
computer (which probably includes the "www"), as this should work without
depending on any redirections, etc.
The web server itself should be able to handle aliases and virtual domains, so
you should be able to set it up to respond to either form of the URL.
If you use "relative paths" for things on the web server itself, then there is
no www or domain name, is there? (since the paths are "relative" to the web
pages themselves). The domain name should only be needed when you go to a
different host.