|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 ... |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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. |
|
![]() |
| Outils de la discussion | |
|
|