From: Rich Bowen
Date: Tue, 16 Jun 2026 16:34:25 +0000 (+0000)
Subject: docs: Add path stripping and RewriteBase flowchart to rewrite/htaccess.xml
X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fea0fe42d0151cf764e37a27ff29f350743a797d;p=thirdparty%2Fapache%2Fhttpd.git
docs: Add path stripping and RewriteBase flowchart to rewrite/htaccess.xml
New diagram showing the per-directory URL transformation pipeline:
incoming URL-path → strip directory prefix → pattern match → substitution
→ three-way branch depending on result type (relative path gets
RewriteBase prepended then subrequest; absolute path goes directly to
subrequest; absolute URI triggers external redirect with no subrequest).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1935418 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/images/rewrite_path_stripping.png b/docs/manual/images/rewrite_path_stripping.png
new file mode 100644
index 0000000000..cfc901b09a
Binary files /dev/null and b/docs/manual/images/rewrite_path_stripping.png differ
diff --git a/docs/manual/images/rewrite_path_stripping.svg b/docs/manual/images/rewrite_path_stripping.svg
new file mode 100644
index 0000000000..12d4092407
--- /dev/null
+++ b/docs/manual/images/rewrite_path_stripping.svg
@@ -0,0 +1,142 @@
+
+
diff --git a/docs/manual/rewrite/htaccess.xml b/docs/manual/rewrite/htaccess.xml
index 78a57d8ca6..00bbe7a4cd 100644
--- a/docs/manual/rewrite/htaccess.xml
+++ b/docs/manual/rewrite/htaccess.xml
@@ -101,6 +101,16 @@ In .htaccess context, the directory prefix is
products/widget - no leading slash, no
/app/ prefix.
+
+ 
+ Figure: Per-directory path stripping and RewriteBase pipeline
+
+
This means you must write your patterns differently depending on
where the rule lives: