From: Rich Bowen
Presented here are each of the available flags, along with an example of how you might use them.
+The [B] flag instructs RewriteRule to escape non-alphanumeric
+characters before applying the transformation.
+
The [C] or [chain] flag indicates that the RewriteRule is chained to the next
rule. That is, if the rule matches, then it is processed as usual and
@@ -87,14 +93,20 @@ RewriteEngine On
RewriteRule ^/index\.html - [CO=frontdoor:yes:.apache.org:1440:/]
This rule doesn't rewrite the request (the "-" rewrite target tells -mod_rewrite to pass the request through unchanged) but sets a cookie +
In the example give, the rule doesn't rewrite the request.
+The "-" rewrite target tells mod_rewrite to pass the request
+through unchanged. Instead, it sets a cookie
called 'frontdoor' to a value of 'yes'. The cookie is valid for any host
in the .apache.org domain. It will be set to expire in 1440
minutes (24 hours) and will be returned for all URIs.
The DPI flag causes the PATH_INFO portion of the rewritten URI to be +discarded.
+ +With the [E], or [env] flag, you can set the value of an environment variable. Note that some environment variables may be set after the rule diff --git a/docs/manual/rewrite/flags.xml b/docs/manual/rewrite/flags.xml index ca8036248fc..c9382ab242a 100644 --- a/docs/manual/rewrite/flags.xml +++ b/docs/manual/rewrite/flags.xml @@ -65,7 +65,7 @@ of how you might use them.
The [B] flag instructs