From: Yann Ylavic
Date: Wed, 1 Jun 2022 11:50:37 +0000 (+0000)
Subject: Note about Absolute URL redirects w.r.t. query-string in mod_rewrite [skip ci]
X-Git-Tag: 2.4.54-rc1-candidate~27
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d2a6cdf04352ef54d8659d06c948b2e365c03a1;p=thirdparty%2Fapache%2Fhttpd.git
Note about Absolute URL redirects w.r.t. query-string in mod_rewrite [skip ci]
Merge r1901487 from trunk.
Submitted by: ylavic
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1901492 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml
index 2bcb02f4b12..7da7edf23cd 100644
--- a/docs/manual/mod/mod_rewrite.xml
+++ b/docs/manual/mod/mod_rewrite.xml
@@ -1232,13 +1232,16 @@ cannot use $N
in the substitution string!
Absolute URL
- If an absolute URL is specified,
+ If an absolute URL is specified,
mod_rewrite checks to see whether the
hostname matches the current host. If it does, the scheme and
hostname are stripped out and the resulting path is treated as
a URL-path. Otherwise, an external redirect is performed for
the given URL. To force an external redirect back to the
- current host, see the [R]
flag below.
+ current host, see the [R]
flag below.
+ Note that a redirect (implicit or not) using an absolute URI
+ will include the requested query-string, to prevent this see the
+ [QSD]
flag below.
-
(dash)