From: Rich Bowen Many use cases that previously required setting and testing
+ environment variables â including conditional headers, access
+ control, and logging â can now be handled more directly using
+
+ Related Modules Related Directives Modern alternative: Expressions
+ <If> expressions
+ with the reqenv function. See
+ Expressions in Apache HTTP Server for the
+ expression syntax and the full list of available
+ variables.CGI Scripts
@@ -199,6 +211,10 @@
allows for flexible control of access to the server based on
characteristics of the client. For example, you can use these
directives to deny access to a particular browser (User-Agent).
+ For more complex conditions,
+ Require expr provides
+ an alternative that can evaluate environment variables using
+ the reqenv function alongside other request properties.
REQUEST_URI, REMOTE_ADDR,
+ SERVER_NAME, and many others), see the
+ expression variables reference.
+
+ Refer to the CGI spec for further details of the standard + CGI meta-variables.
It provides a flexible and powerful way to manipulate URLs using an unlimited number of rules. Each rule can have an unlimited number of attached rule conditions, to allow you to rewrite URLs - based on server variables, environment variables, cookies, HTTP headers, - or timestamps. Rules can operate on the + based on server variables (including HTTP + headers, connection details, and timestamps), environment variables, + or other request properties. Rules can operate on the URL-path (including any trailing pathname information) and can also alter the @@ -210,7 +211,7 @@ URLs on the fly RewriteMap for more details.
%{ NAME_OF_VARIABLE
}
@@ -1218,7 +1219,7 @@ guide for complete details.
%N) to the last matched
RewriteCond pattern%{VARNAME})RewriteCond
CondPattern: %0 is the entire match and
- %1..%9 are the captured groups. The server-variables are the same
+ %1..%9 are the captured groups. The server variables are the same
as for the TestString of a
RewriteCond
directive. The mapping-functions come from the
@@ -1279,7 +1280,7 @@ guide for complete details.
For similar escaping of server-variables, see +
For similar escaping of server variables, see the "escape" mapping-function
@@ -299,12 +299,14 @@ minutes (24 hours) and is returned for all URIs.The DPI flag causes the PATH_INFO portion of the rewritten URL-path to be -discarded.
- -In per-directory context,
-the URL-path each RewriteRule compares against
-is the concatenation of the current URL-path and PATH_INFO.
The DPI flag causes the PATH_INFO +that was appended to the rewritten +URL-path to be discarded.
+ +In per-directory context, the
+URL-path each
+RewriteRule compares against is the concatenation
+of the current URL-path and PATH_INFO.
The current URL-path can be the initial path as requested by the
client, the result of a previous round of mod_rewrite
diff --git a/docs/manual/rewrite/flags.xml.de b/docs/manual/rewrite/flags.xml.de
index 9c59afb218..3f7d989482 100644
--- a/docs/manual/rewrite/flags.xml.de
+++ b/docs/manual/rewrite/flags.xml.de
@@ -1,7 +1,7 @@
-
+
+
+
diff --git a/docs/manual/rewrite/flags.xml.ja b/docs/manual/rewrite/flags.xml.ja
index 4da241aec3..4617dc70c9 100644
--- a/docs/manual/rewrite/flags.xml.ja
+++ b/docs/manual/rewrite/flags.xml.ja
@@ -1,7 +1,7 @@
-
+
+
+
+
+
+
+
diff --git a/docs/manual/rewrite/intro.xml.ja b/docs/manual/rewrite/intro.xml.ja
index 215fef0ae8..f7219b057f 100644
--- a/docs/manual/rewrite/intro.xml.ja
+++ b/docs/manual/rewrite/intro.xml.ja
@@ -1,7 +1,7 @@
-
+
+
+
+
+
+
+
diff --git a/docs/manual/rewrite/tech.xml.ja b/docs/manual/rewrite/tech.xml.ja
index 00abb3ebcc..d323373a9f 100644
--- a/docs/manual/rewrite/tech.xml.ja
+++ b/docs/manual/rewrite/tech.xml.ja
@@ -1,7 +1,7 @@
-
+
+
+
+