httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] Can't set environment variable in per-birectory rewrite
Date Sat, 12 May 2007 17:50:19 GMT
On 5/12/07, Ian Brandt <> wrote:

> RewriteRule ^(.+)$ frontcontroller.php [NS,E=REWRITTEN_REQUEST_URI:$1]

I hate dealing with per-directory rewrites myself. Too darn complex.

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]
RewriteRule ^(.+)$ frontcontroller.php?Rewritten_request_uri=$1 [QSA]

Then adjust your frontcontroller.php to get the info from PATH_INFO or

The first one might require setting AllowPathInfo On in httpd.conf.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message