Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 75367 invoked from network); 24 Aug 2004 17:58:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 24 Aug 2004 17:58:38 -0000 Received: (qmail 50329 invoked by uid 500); 24 Aug 2004 17:58:05 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 50261 invoked by uid 500); 24 Aug 2004 17:58:04 -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 50067 invoked by uid 99); 24 Aug 2004 17:58:03 -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: from [64.233.170.198] (HELO mproxy.gmail.com) (64.233.170.198) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 24 Aug 2004 10:57:59 -0700 Received: by mproxy.gmail.com with SMTP id 78so274708rnl for ; Tue, 24 Aug 2004 10:57:58 -0700 (PDT) Received: by 10.38.83.11 with SMTP id g11mr595350rnb; Tue, 24 Aug 2004 10:57:58 -0700 (PDT) Received: by 10.38.74.66 with HTTP; Tue, 24 Aug 2004 10:57:58 -0700 (PDT) Message-ID: <97a1f6590408241057270f07ed@mail.gmail.com> Date: Tue, 24 Aug 2004 10:57:58 -0700 From: Thomas Joseph Olaes Reply-To: Thomas Joseph Olaes To: users@httpd.apache.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked Subject: [users@httpd] mod_rewrite backreference not giving me what I want X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello list, I'm having a bit of a problem. I'm trying to use .htaccess to implement some mod_rewrite rules. Here's what I have: RewriteEngine on RewriteBase /test/cb RewriteRule ^test\.htm$ index.php?t=a$0 [L] RewriteRule ^(.*)\.(php|html?)$ index.php?t=b$0 [L] in index.php, I have: "; print_r($_SERVER); echo ""; ?> for pretty much every URL I send to this directory, I always get the second RewriteRule. The .htaccess is currently sitting at http://www.mydomain.com/test/cb, as is the index.php file. My question is: why is the $0 backreference matching the page that the path gets rewritten to, instead of the matched regexp string from the path submitted to the server? Thanks in advance for any answers and time given to my question. -TJ --------------------------------------------------------------------- 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