You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Eric Frazier <ef...@kwinternet.com> on 2002/07/25 00:51:13 UTC

mod_rewrite and perl envs

Hi,

Has anyone used mod_rewrite to set an environmental variable based on the 
result of a reg exp?

For example:
RewriteRule ^/pt=([^/]+)?(.*) /home/me.com/public_html/$2  [E=PT:$1]

I can get a static url like:
RewriteRule   /perl  /usr/local/apache/perl/printenv [E=ERIC:bob]

to work, but the first one I can't. PT doesn't exist, but ERIC does.


Thanks,

Eric




Leading Edge Marketing Inc.
250-360-2992


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org