Read ENV set by script (mod_rewrite)

New to mod_rewrite? This is a good place to start.

Read ENV set by script (mod_rewrite)

Postby houseofmore » Wed Dec 10, 2003 3:51 pm

Hello,

I was wondering if anyone knew if it was possible to read a env
variable set by a script, or has apache already done it's job by then?
At what point does it do the rewriting?

For the sake of simplicity:

Code: Select all
RewriteEngine   on
RewriteRule ^/meme/([a-zA-Z0-9]+)\.gif /meme/%{ENV:mygif}\.gif


Code: Select all
(PHP)
<?
$_ENV[mygif] = 'me';
# ....
print '<a href="/meme/image.gif"></a>';
?>


Thanks!
-J
houseofmore
 

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 29 guests

cron