PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > Local URLs : what do they resolve to?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

Local URLs : what do they resolve to?

Réponse
 
LinkBack Outils de la discussion
Vieux 13/03/2005, 20h36   #1
Yef
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Local URLs : what do they resolve to?

Hi all,

I was wondering, if I put in a web page a link to a local
URL such as for an image, e.g.

<img src=/blahblah.gif>
or
<img src=blahblah.gif>

What do these resolve to?

I've just seen some evidence that the first one resolves to

domain.com/blahblah.gif

even when the browser thinks there is a prefix, thus: www.domain.com.

Thanks for any ...

  Réponse avec citation
Vieux 14/03/2005, 10h35   #2
Tim
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Local URLs : what do they resolve to?

On 13 Mar 2005 12:36:24 -0800,
"Yef" <e97y@yahoo.com> posted:

> Hi all,
>
> I was wondering, if I put in a web page a link to a local
> URL such as for an image, e.g.
>
> <img src=/blahblah.gif>
> or
> <img src=blahblah.gif>
>
> What do these resolve to?


The first one is to a GIG in the document root (it's an absolute address).
And the second one (a relative address) refers to a GIF in the same
directory as the HTML file, given that you're not playing tricks with
rewriting URIs, etc.

> I've just seen some evidence that the first one resolves to
>
> domain.com/blahblah.gif
>
> even when the browser thinks there is a prefix, thus: www.domain.com.


The domain name is a completely different thing. Neither of your examples
makes any reference to the domain name, they're just the latter part of an
address that the web browser will append to the current URI *path* (i.e.
the path before the current file, if there is a filename on the URI).

However, some servers are configured to rewrite the URI to a manner that
suits themselves, and you may be getting confused.

e.g. You could configure www.example.com's server to always refer to
itself as www.example.com. So that even if it responded to queries at
test.example.com it'd rewrite the hostname to www.example.com.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h44.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08902 seconds with 10 queries