httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
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 <ian@ianbrandt.com> 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]
or
RewriteRule ^(.+)$ frontcontroller.php?Rewritten_request_uri=$1 [QSA]

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

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

Joshua.

---------------------------------------------------------------------
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


Mime
View raw message