From: Eric Covener Date: Sun, 1 Sep 2019 18:10:34 +0000 (+0000) Subject: PR63715: s/can/came and add a caution about REDIRECT_-prefixed envvars X-Git-Tag: 2.5.0-alpha2-ci-test-only~1901 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b82c9bab94434e58b88cc1d5571fc5a7dc4fa22;p=thirdparty%2Fapache%2Fhttpd.git PR63715: s/can/came and add a caution about REDIRECT_-prefixed envvars git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1866243 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/advanced.xml b/docs/manual/rewrite/advanced.xml index 8abba8e109c..495522a1dce 100644 --- a/docs/manual/rewrite/advanced.xml +++ b/docs/manual/rewrite/advanced.xml @@ -318,10 +318,10 @@ RewriteRule "^foo\.html$" "foo.night.html"
Description:
-

At time, we want to maintain some kind of status when we +

At times, we want to maintain some kind of status when we perform a rewrite. For example, you want to make a note that you've done that rewrite, so that you can check later to see if a - request can via that rewrite. One way to do this is by setting an + request came via that rewrite. One way to do this is by setting an environment variable.

@@ -344,7 +344,10 @@ RewriteCond "%{ENV:rewritten}" =1

Note that environment variables do not survive an external redirect. You might consider using the [CO] flag to set a - cookie.

+ cookie. For per-directory and htaccess rewrites, where the final + substitution is processed as an internal redirect, environment + variables from the previous round of rewriting are prefixed with + "REDIRECT_".