Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 69276 invoked from network); 30 May 2006 06:07:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 May 2006 06:07:40 -0000 Received: (qmail 87960 invoked by uid 500); 30 May 2006 06:07:30 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 87949 invoked by uid 500); 30 May 2006 06:07:30 -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 87937 invoked by uid 99); 30 May 2006 06:07:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 May 2006 23:07:30 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.56.241.17] (HELO orsa.atos-infogerance.fr) (193.56.241.17) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 May 2006 23:07:28 -0700 Received: from minotaure.atos-infogerance.fr ([193.56.47.17]) by orsa.atos-infogerance.fr (8.12.8/8.12.8) with ESMTP id k4U676rX028735 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 30 May 2006 08:07:06 +0200 Received: from exchange2k301.gaia.fr ([150.175.10.40]) by minotaure.atos-infogerance.fr (8.12.8/8.12.8) with ESMTP id k4U674VS006197 for ; Tue, 30 May 2006 08:07:04 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Tue, 30 May 2006 08:07:04 +0200 Message-ID: <8C29B2F93BAE9047A906EF6D6F9C5D43020C6517@exchange2k301.gaia.fr> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] mod_rewrite Thread-Index: AcaDXwsnna16vcqzQOSXgohWg6B2vQATshxw From: =?iso-8859-1?Q?Axel-St=E9phane__SMORGRAV?= To: X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] mod_rewrite X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > Without the L-flag, and after /a has been substituted with /b, the = second rule would be tested not against /b but against http://[host]/b, = so the result is not /c.=20 This is where my misconception about immediate redirection with the R = flag comes from. Should look at the code some more. > RewriteRule /b /c But here the pattern would also match /a/b/d which was not necessarily = the intention. Back to=20 RewriteCond %{HTTP_REFERRER}<>$1 !(/test/.+)<>\1$ Could you elaborate a little about the syntax ? I have never seen = anything like this in the mod_rewrite manual page nor in the URL = Rewriting Guide... but it obviously works as far as I can tell from = having given it a go. \1 is obviously a back-reference, but <> ? -ascs -----Original Message----- From: Robert Ionescu [mailto:robsiegen@googlemail.com]=20 Sent: Monday, May 29, 2006 10:32 PM To: users@httpd.apache.org Subject: Re: [users@httpd] mod_rewrite Axel-St=E9phane SMORGRAV wrote: >> Rules below would be tested, but they wouldn't match unless the = pattern starts with scheme + :// + url-path. >=20 > unless the RewriteCond pattern starts with /. The above matches just = fine. I meant this hypothetical case RewriteRule ^/a /b [R] RewriteRule ^/b /c Without the L-flag, and after /a has been substituted with /b, the = second rule would be tested not against /b but against http://[host]/b, = so the result is not /c. So removing the L flag in that case won't change r->filename to /c while using RewriteRule ^/a /b [R] RewriteRule /b /c would now end up in /c and no external redirection takes place at all. -- Robert --------------------------------------------------------------------- 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