httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: Access checker not setting environment after RewriteRule
Date Sun, 23 Mar 2008 01:44:51 GMT
On Sat, 22 Mar 2008 20:56:03 -0400
"Sam Carleton" <scarleton@miltonstreet.com> 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 <Directory> 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 <directory>, 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/

Mime
View raw message