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.


I know this is not exactly on topic, but it is a weird sort of issue, the
admin I was dealing with said he could get the above ENV with PHP or
mod_perl but not with perl CGI's I can't seem to get it with a mod_perl
Registry script either though. 


Thanks,

Eric

http://www.kwinternet.com/eric
(250) 655 - 9513 (PST Time Zone)

"Inquiry is fatal to certainty." -- Will Durant 




Reply via email to