You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ian Brandt <ia...@ianbrandt.com> on 2007/05/13 18:48:20 UTC

Re: [users@httpd] Can't set environment variable in per-directory rewrite

On May 12, 2007, at 10:50 AM, Joshua Slive wrote:

> I don't know the exact problem here, but I can suggest a more typical
> way to get around this:
> Simple use something like
> RewriteRule ^(.+)$ frontcontroller.php/$1  
> [NS,E=REWRITTEN_REQUEST_URI:$1]
> or
> RewriteRule ^(.+)$ frontcontroller.php?Rewritten_request_uri=$1 [QSA]


Using the query string does the trick.  I'll file the environment  
variable issue as a bug as it doesn't seem like the desired behavior.

Thanks,

Ian

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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