Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 31103 invoked from network); 11 Jan 2007 07:22:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jan 2007 07:22:29 -0000 Received: (qmail 42368 invoked by uid 500); 11 Jan 2007 07:22:25 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 42350 invoked by uid 500); 11 Jan 2007 07:22:25 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 42339 invoked by uid 99); 11 Jan 2007 07:22:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jan 2007 23:22:24 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [146.109.240.232] (HELO irp0b.swx.com) (146.109.240.232) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jan 2007 23:22:15 -0800 Received: from unknown (HELO gate0a.unix.swx.ch) ([192.168.252.17]) by irp0b.swx.com with ESMTP; 11 Jan 2007 08:21:53 +0100 X-IronPort-AV: i="4.13,170,1167606000"; d="scan'208"; a="5556658:sNHT40781316" Received: from CIWMEXZSA0E.ex.ordersx.org (siwmexzsa0a.ex.ordersx.org [172.20.29.10]) by gate0a.unix.swx.ch (8.13.4/8.13.4) with ESMTP id l0B7LnBj018324 for ; Thu, 11 Jan 2007 08:21:53 +0100 (MET) Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2663 Date: Thu, 11 Jan 2007 08:21:48 +0100 Message-ID: Importance: normal Priority: normal X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] What are URLs relative to? thread-index: Acc1SubY1TdVw/CdT/6ERTh1RxapGgABegEg From: "Boyle Owen" To: X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] What are URLs relative to? > -----Original Message----- > From: lightbulb432 [mailto:veerukrishnan@hotmail.com]=20 > Sent: Thursday, January 11, 2007 7:36 AM > To: users@httpd.apache.org > Subject: [users@httpd] What are URLs relative to? >=20 >=20 > What are relative URLs relative to? For example, if you=20 > define an error page > in .htaccess and you have relative URLs in the error page=20 > itself (although > I've heard it's better to have absolute URLs in there), are=20 > those relative > URLs resolved relative to: >=20 > a) the physical location of that error page > b) the location of the requested URL (e.g. site.com/friendlyURL) > c) the location of the rewritten URL (e.g. > site.com/subdir1/subdir2/page.abc?hello=3Dtrue) Answer: d) the location (ie, URL) of the error page eg, if the error page is at http://server/error/404.html and the link is to "../index.html" then the URL of the link will be http://server/index.html Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored.=20 >=20 > I saw the following from > http://www.yourhtmlsource.com/sitemanagement/custom404error.ht > ml, which is > the reason behind this question: >=20 > "Since your 404 page might be served up from any subdirectory=20 > of your site, > make sure all links and image sources are defined absolutely.=20 > For instance, > use href=3D"/index.html" instead of href=3D"../../index.html"" >=20 > Thanks. > --=20 > View this message in context:=20 > http://www.nabble.com/What-are-URLs-relative-to--tf2957180.htm l#a8272516 > Sent from the Apache HTTP Server - Users mailing list archive=20 > at Nabble.com. >=20 >=20 > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP=20 > Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > =20 =20 This message is for the named person's use only. It may contain = confidential, proprietary or legally privileged information. No = confidentiality or privilege is waived or lost by any mistransmission. = If you receive this message in error, please notify the sender urgently = and then immediately delete the message and any copies of it from your = system. Please also immediately destroy any hardcopies of the message. = You must not, directly or indirectly, use, disclose, distribute, print, = or copy any part of this message if you are not the intended recipient. = The sender's company reserves the right to monitor all e-mail = communications through their networks. Any views expressed in this = message are those of the individual sender, except where the message = states otherwise and the sender is authorised to state them to be the = views of the sender's company. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org