From: Rich Bowen
Date: Wed, 11 Jan 2023 18:51:20 +0000 (+0000)
Subject: Addresses https://bz.apache.org/bugzilla/show_bug.cgi?id=53108
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36fcd109a332b8f719f74715bfb12e1ebb5814c1;p=thirdparty%2Fapache%2Fhttpd.git
Addresses https://bz.apache.org/bugzilla/show_bug.cgi?id=53108
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1906615 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/rewrite/intro.xml b/docs/manual/rewrite/intro.xml
index 0a61d231ac4..b624cad6cff 100644
--- a/docs/manual/rewrite/intro.xml
+++ b/docs/manual/rewrite/intro.xml
@@ -193,7 +193,7 @@ value.
The Substitution can itself be one of three things:
-- A full filesystem path to a resource
+- 1. A full filesystem path to a resource
-
RewriteRule ^/games.* /usr/local/games/web
@@ -202,7 +202,7 @@ RewriteRule ^/games.* /usr/local/games/web
like the Alias directive.
-A web-path to a resource
+2. A web-path to a resource
RewriteRule ^/foo$ /bar
@@ -213,7 +213,7 @@ map requests for http://example.com/foo
to the
path /usr/local/apache2/htdocs/bar
.
-An absolute URL
+3. An absolute URL
RewriteRule ^/product/view$ http://site2.example.com/seeproduct.html [R]
@@ -222,6 +222,8 @@ RewriteRule ^/product/view$ http://site2.example.com/seeproduct.html [R]
+Note that 1 and 2 have exactly the same syntax. The difference between them is that in the case of 1, the top level of the target path (i.e., /usr/
) exists on the filesystem, where as in the case of 2, it does not. (i.e., there's no /bar/
as a root-level directory in the filesystem.)
+
The Substitution can also
contain back-references to parts of the incoming URL-path
matched by the Pattern. Consider the following: