summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2016-03-09 15:13:04 +0000
committerEric Covener <covener@apache.org>2016-03-09 15:13:04 +0000
commit53658568dd5d8a3d8731d2c4ce41d8335f3b05ae (patch)
tree7b97765fc6e74f219bd2a80cb28e3265daa333c7 /docs
parent114a121f1cb008eb0bd47ee47f08d4149a5c3bc3 (diff)
downloadhttpd-53658568dd5d8a3d8731d2c4ce41d8335f3b05ae.tar.gz
Merge r1734125 from trunk:
mod_rewrite: Add QSL|qslast flag to allow rewrites to files with literal question marks in their names. PR 58777. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1734259 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs')
-rw-r--r--docs/manual/mod/mod_rewrite.xml9
-rw-r--r--docs/manual/rewrite/flags.xml17
2 files changed, 26 insertions, 0 deletions
diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml
index 70942b100c..dc3a8dd80f 100644
--- a/docs/manual/mod/mod_rewrite.xml
+++ b/docs/manual/mod/mod_rewrite.xml
@@ -1366,6 +1366,15 @@ cannot use <code>$N</code> in the substitution string!
...</a></em></td>
</tr>
<tr>
+ <td>qslast|QSL</td>
+ <td>Interpret the last (right-most) question mark as the query string
+ delimeter, instead of the first (left-most) as normally used.
+ Available in 2.4.19 and later.
+ <em><a href="../rewrite/flags.html#flag_qsl">details
+ ...</a></em></td>
+ </tr>
+
+ <tr>
<td>redirect|R[=<em>code</em>]</td>
<td>Forces an external redirect, optionally with the specified
HTTP status code. <em><a
diff --git a/docs/manual/rewrite/flags.xml b/docs/manual/rewrite/flags.xml
index c716a781e5..e38b5d8ac5 100644
--- a/docs/manual/rewrite/flags.xml
+++ b/docs/manual/rewrite/flags.xml
@@ -628,6 +628,23 @@ URI.
</section>
+<section id="flag_qsl"><title>QSL|qslast</title>
+<p>
+By default, the first (left-most) question mark in the substitution
+delimits the path from the query string. Using the [QSL] flag instructs
+<directive module="mod_rewrite">RewriteRule</directive> to instead split
+the two components using the last (right-most) question mark. </p>
+
+<p>
+This is useful when mapping to files that have literal question marks in
+their filename. If no query string is used in the substitution,
+a question mark can be appended to it in combination with this flag. </p>
+
+<p> This flag is available in version 2.4.19 and later.</p>
+
+</section>
+
+
<section id="flag_r"><title>R|redirect</title>
<p>
Use of the [R] flag causes a HTTP redirect to be issued to the browser.