From 7f0900c271f3ee5b11f6bf17d7101aab176516f8 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Wed, 1 Jun 2022 11:05:37 +0000 Subject: [PATCH] Note about Absolute URL w.r.t. query-string in mod_rewrite [skip ci] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1901487 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_rewrite.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index 8174690b517..4eda236adf5 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -1239,13 +1239,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)
-- 2.47.2