From: Rich Bowen Date: Mon, 25 May 2026 17:48:25 +0000 (+0000) Subject: docs: Normalize "server-variables" to "server variables" in mod_rewrite X-Git-Tag: 2.4.68-rc1-candidate~86 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=c958729c804bf8211482d189ffca86f90a486bba;p=thirdparty%2Fapache%2Fhttpd.git docs: Normalize "server-variables" to "server variables" in mod_rewrite Remove hyphenation from "Server-Variables"/"server-variables" in mod/mod_rewrite.xml and rewrite/flags.xml — no RFC precedent exists for the hyphenated form (RFC 3875 uses "meta-variables"). Rework the module summary to clarify that HTTP headers and timestamps are a subset of server variables, not separate categories. Link the term to its definition in RewriteCond. Addresses: https://bz.apache.org/bugzilla/show_bug.cgi?id=70059 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934606 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index 55c2880bf6..4a35efc2ca 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -41,8 +41,9 @@ URLs on the fly

mod_rewrite 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 time - stamps.

+ based on server variables (including HTTP + headers, connection details, and timestamps), environment variables, + or other request properties.

mod_rewrite can operate on the full URL-path, or any portion of it, including the PATH_INFO or QUERY_STRING.

@@ -498,7 +499,7 @@ RewriteRule "^/ex/(.*)" "${examplemap:$1}" RewriteMap for more details.
  • - Server-Variables: These are variables of + Server variables: These are variables of the form %{ NAME_OF_VARIABLE } @@ -1303,7 +1304,7 @@ sections and consider both set of statements, rather than only the last one.
  • back-references (%N) to the last matched RewriteCond pattern -
  • server-variables as in rule condition test-strings +
  • server variables as in rule condition test-strings (%{VARNAME})
  • mapping-function calls @@ -1321,7 +1322,7 @@ sections and consider both set of statements, rather than only the last one.
  • 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 @@ -1368,7 +1369,7 @@ sections and consider both set of statements, rather than only the last one. B Escape non-alphanumeric characters in backreferences before - applying the transformation. For similar escaping of server-variables, see + applying the transformation. For similar escaping of server variables, see the "escape" mapping-function.details ... diff --git a/docs/manual/rewrite/flags.xml b/docs/manual/rewrite/flags.xml index f063f074d1..c485ef634b 100644 --- a/docs/manual/rewrite/flags.xml +++ b/docs/manual/rewrite/flags.xml @@ -73,7 +73,7 @@ so backreferences are unescaped at the time they are applied. Using the B flag, non-alphanumeric characters in backreferences will be escaped. For example, consider the rule:

    -

    For similar escaping of server-variables, see +

    For similar escaping of server variables, see the "escape" mapping-function