[Techtalk] Re: Directory handling with apache server
showercurtain2000 at yahoo.com
Thu Oct 30 02:56:19 EST 2003
On Mon, 27 Oct 2003, John Clarke said:
<snip> the slash is needed for the browser to build the correct url.
> if you type in the url:
> the server (apache) knows that /john is a directory, but the
> doesn't. a relative url within /john/index.html, e.g.:
> <p><a href="photos/index.html">Photos</a></p>
> has to be converted into an absolute url by the browser.
Hi John, and thanks for the explanation. So just to make sure I
understand correctly: apache knows /john is a directory (and not a
document) by using stat()?
> without a trailing slash, it will strip "john" and add
> "photos/index.html", giving "http://kirriwa.net/photos/index.html"
> which is incorrect, but the browser doesn't know that because it
has > no idea that "/john" is a directory.
Ok I think I got this bit :) So if the URL is
the server should redirect the browser to http://kirriwa.net/john/ ?
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
More information about the Techtalk