From 44f33dadc0e690c2b80284e4128a0b937a09890f Mon Sep 17 00:00:00 2001
From: Rich Bowen
The following example sets an evironment variable called 'image' to a +
The full syntax for this flag is:
+ +
+[E=VAR:VAL]
+[E=!VAR]
+
VAL
may contain backreferences ($N
or
+%N
) which will be expanded.
Using the short form
+ +
+[E=VAR]
+
you can set the environment variable named VAR
to an
+empty value.
The form
+ +
+[E=!VAR]
+
allows to unset a previously set environment variable named
+VAR
.
Environment variables can then be used in a variety of +contexts, including CGI programs, other RewriteRule directives, or +CustomLog directives.
+ +The following example sets an environment variable called 'image' to a value of '1' if the requested URI is an image file. Then, that environment variable is used to exclude those requests from the access log.
-- 2.47.2