Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 63855 invoked from network); 31 Aug 2004 13:44:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 31 Aug 2004 13:44:22 -0000 Received: (qmail 58499 invoked by uid 500); 31 Aug 2004 13:43:52 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 58478 invoked by uid 500); 31 Aug 2004 13:43:52 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 58460 invoked by uid 99); 31 Aug 2004 13:43:51 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jslive@gmail.com designates 64.233.170.202 as permitted sender) Received: from [64.233.170.202] (HELO mproxy.gmail.com) (64.233.170.202) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 31 Aug 2004 06:43:49 -0700 Received: by mproxy.gmail.com with SMTP id 78so394908rnl for ; Tue, 31 Aug 2004 06:43:45 -0700 (PDT) Received: by 10.38.171.20 with SMTP id t20mr1539462rne; Tue, 31 Aug 2004 06:43:45 -0700 (PDT) Received: by 10.38.78.68 with HTTP; Tue, 31 Aug 2004 06:43:45 -0700 (PDT) Message-ID: Date: Tue, 31 Aug 2004 09:43:45 -0400 From: Joshua Slive Reply-To: Joshua Slive To: users@httpd.apache.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: X-Virus-Checked: Checked Subject: Re: [users@httpd] mod_rewrite and RewriteRule X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Mon, 30 Aug 2004 14:25:36 +1000 (EST), Dan Goodes wrote: > What string is used as "Pattern"? I always thought it was the path of the > URL, but recent testing seems to indicate that it's the filesystem path > that's matched. > > E.g. if I have > > RewriteCond %{REQUEST_FILENAME} -f > RewriteRule ^/(.*)$ /some/script.php?x=$1 [PT,T=application/x-httpd-php,L] > > And script.php just echo's $x, then I get the FULL path to the file, not > the matched URL. It should be the url-path and not the file-path. Do you have other RewriteRules that might be modifying the url? Have you tried the RewriteLog? Joshua. --------------------------------------------------------------------- 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