From: Rich Bowen Date: Mon, 25 May 2026 17:48:18 +0000 (+0000) Subject: docs: Normalize "server-variables" to "server variables" in mod_rewrite X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=533c0167bbf90f0beced9f96bdff97894aeb41a7;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/trunk@1934605 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index ac6573523e..6f9b071c95 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -41,8 +41,9 @@ URLs on the fly

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 @@ -507,7 +508,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 } @@ -1227,7 +1228,7 @@ guide for complete details.
  • 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 @@ -1245,7 +1246,7 @@ guide for complete details. matched 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 @@ -1292,7 +1293,7 @@ guide for complete details. 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 f2b54a1a17..b5cf4a417a 100644 --- a/docs/manual/rewrite/flags.xml +++ b/docs/manual/rewrite/flags.xml @@ -75,7 +75,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