If my usr is
http://some-domain.com/some_directory/LDIR=foobar/my_html.shtml
and I have a rewrite rule
RewriteRule ^(.*)/LDIR=([^/]+)/(.*) $1/$3 [E=LDIR:$2]
<!--#printenv -->
will show LDIR=foobar
but if my url is
http://some-domain.com/
and my rewrite rule is:
RewriteRule ^/$ $1 [E=LDIR:$1]
#printenv shows
REDIREDT_LDIR=/
and not
LDIR=/
jlk Consultants ltd.
jlk "at" pobox "dot" com // just to keep the spam away
Home of the Apache RTFM! http://www.jlk.net/apache/