Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 47658 invoked from network); 23 Mar 2008 01:45:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Mar 2008 01:45:25 -0000 Received: (qmail 48993 invoked by uid 500); 23 Mar 2008 01:45:22 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 48981 invoked by uid 500); 23 Mar 2008 01:45:22 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 48971 invoked by uid 99); 23 Mar 2008 01:45:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Mar 2008 18:45:22 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.229.52.226] (HELO grimnir.webthing.com) (80.229.52.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Mar 2008 01:44:41 +0000 Received: from grimnir.webthing.com (localhost [127.0.0.1]) by grimnir.webthing.com (Postfix) with ESMTP id 3FD8B2138 for ; Sun, 23 Mar 2008 01:44:52 +0000 (GMT) Date: Sun, 23 Mar 2008 01:44:51 +0000 From: Nick Kew To: modules-dev@httpd.apache.org Subject: Re: Access checker not setting environment after RewriteRule Message-ID: <20080323014451.3692728c@grimnir> In-Reply-To: <8d38ca0a0803221756k6f4b7a5x5d613701aace195d@mail.gmail.com> References: <8d38ca0a0803221756k6f4b7a5x5d613701aace195d@mail.gmail.com> Organization: WebThing X-Mailer: Sylpheed-Claws 2.5.0-rc3 (GTK+ 2.10.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Sat, 22 Mar 2008 20:56:03 -0400 "Sam Carleton" wrote: [why access checker for this function?] > This works fine while the url was something simple like this: > > http://localhost/index.php?fldoid=258a2b0a-b413-4815-8bf6-fbe6c2a9760d > > I want to start using some rewrite rules, to leverage browser caching, > so I changed the URL to: > > http://localhost/category/258a2b0a-b413-4815-8bf6-fbe6c2a9760d Um, what browser is so broken as to let that affect it? > And added this rewrite rule to the of the document root: > > RewriteRule ^category/([^/]*)$ index.php?fldoid=$1 [L] > > The access check hooker is getting called, but when the PHP executes, > the $_SERVER variables I need are not defined. The RewriteRule triggers an internal redirect. Since you put it in a , that happens after the access checker. The subprocess_env vars you set remain with the original request_rec. -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/