]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Note about Absolute URL redirects w.r.t. query-string in mod_rewrite [skip ci]
authorYann Ylavic <ylavic@apache.org>
Wed, 1 Jun 2022 11:50:37 +0000 (11:50 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 1 Jun 2022 11:50:37 +0000 (11:50 +0000)
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

docs/manual/mod/mod_rewrite.xml

index 2bcb02f4b12ce4eba6165a14dc6637c1e30d605d..7da7edf23cd55880bf14b2c1a4184d7226085b4a 100644 (file)
@@ -1232,13 +1232,16 @@ cannot use <code>$N</code> in the substitution string!
 
         <dt>Absolute URL</dt>
 
-        <dd>If an absolute URL is specified,
+        <dd><p>If an absolute URL is specified,
         <module>mod_rewrite</module> 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 <code>[R]</code> flag below.</dd>
+        current host, see the <code>[R]</code> flag below.</p>
+        <p>Note that a redirect (implicit or not) using an absolute URI
+        will include the requested query-string, to prevent this see the
+        <code>[QSD]</code> flag below.</p></dd>
 
         <dt><code>-</code> (dash)</dt>