From: Rich Bowen
+RewriteRule pattern target [Flag1,Flag2,Flag3]
+
The flags all have a short form, such as CO
, as well as
+a longer form, such as cookie
. Some flags take one or more
+arguments. Flags are not case sensitive.
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
control moves on to the next rule. However, if it does not match, then
-the next rule, and any other ruls that are chained together, will be
+the next rule, and any other rules that are chained together, will be
skipped.
With the [E], or [env] flag, you can set the value of an environment
-variable. Note that some variables may be set after the rule is run, and
-so setting them in the RewriteRule
won't work, since it will
-be changed afterwards.
The following example sets an evironment variable called 'image' to a value of '1' if the requested URI is an image file. Then, that @@ -110,7 +118,7 @@ an example, not as a recommendation.
Forbidden flag
+Gone flag
With the [E], or [env] flag, you can set the value of an environment
-variable. Note that some variables may be set after the rule is run, and
-so setting them in the
The following example sets an evironment variable called 'image' to a value of '1' if the requested URI is an image file. Then, that diff --git a/docs/manual/rewrite/index.html.en b/docs/manual/rewrite/index.html.en index 2dd84798ab8..bbd54df05c2 100644 --- a/docs/manual/rewrite/index.html.en +++ b/docs/manual/rewrite/index.html.en @@ -71,7 +71,7 @@
We just rewrite the URL to the CGI-script and force the
- correct MIME-type so it gets really run as a CGI-script.
+ handler to be cgi-script so that it is
+ executed as a CGI program.
This way a request to /~quux/foo.html
internally leads to the invocation of
/~quux/foo.cgi
.
RewriteEngine on RewriteBase /~quux/ -RewriteRule ^foo\.html$ foo.cgi [T=application/x-httpd-cgi] +RewriteRule ^foo\.html$ foo.cgi [H=cgi-script]
We just rewrite the URL to the CGI-script and force the
- correct MIME-type so it gets really run as a CGI-script.
+ handler to be cgi-script so that it is
+ executed as a CGI program.
This way a request to /~quux/foo.html
internally leads to the invocation of
/~quux/foo.cgi
.
RewriteEngine on RewriteBase /~quux/ -RewriteRule ^foo\.html$ foo.cgi [T=application/x-httpd-cgi] +RewriteRule ^foo\.html$ foo.cgi [H=cgi-script]diff --git a/docs/manual/rewrite/rewrite_guide_advanced.html.en b/docs/manual/rewrite/rewrite_guide_advanced.html.en index 021ade97617..0466db44f42 100644 --- a/docs/manual/rewrite/rewrite_guide_advanced.html.en +++ b/docs/manual/rewrite/rewrite_guide_advanced.html.en @@ -49,8 +49,8 @@
The Apache module