From: Rich Bowen
Date: Tue, 16 Jun 2026 15:09:59 +0000 (+0000)
Subject: docs: Add [L] flag looping flowchart to rewrite/htaccess.xml
X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14f18517a99aa1fc0a9e496459c0bb2e9bc9f02c;p=thirdparty%2Fapache%2Fhttpd.git
docs: Add [L] flag looping flowchart to rewrite/htaccess.xml
New diagram illustrating how [L] in per-directory context triggers an
internal subrequest that re-enters the ruleset, potentially causing
infinite loops. Shows the [END] flag exit path, the condition-guard
exit path, and the unguarded loop that results in a 500 error.
SVG source and PNG placed in docs/manual/images/. Image referenced
from the "The [L] flag and looping" section of htaccess.xml using the
same figure markup pattern as existing tech.xml diagrams.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1935412 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/images/rewrite_l_flag_looping.png b/docs/manual/images/rewrite_l_flag_looping.png
new file mode 100644
index 0000000000..47aabf8b63
Binary files /dev/null and b/docs/manual/images/rewrite_l_flag_looping.png differ
diff --git a/docs/manual/images/rewrite_l_flag_looping.svg b/docs/manual/images/rewrite_l_flag_looping.svg
new file mode 100644
index 0000000000..bee5740c4f
--- /dev/null
+++ b/docs/manual/images/rewrite_l_flag_looping.svg
@@ -0,0 +1,153 @@
+
+
diff --git a/docs/manual/rewrite/htaccess.xml b/docs/manual/rewrite/htaccess.xml
index 5db5037db3..78a57d8ca6 100644
--- a/docs/manual/rewrite/htaccess.xml
+++ b/docs/manual/rewrite/htaccess.xml
@@ -215,6 +215,14 @@ After the substitution is made, Apache re-processes the request from
the top - including re-applying the .htaccess rules.
This can lead to infinite loops.
+
+
+ Figure: Per-directory [L] flag looping behavior
+