From: Willy Tarreau Date: Sat, 9 Jan 2010 23:42:19 +0000 (+0100) Subject: [MINOR] http redirect: add the ability to append a '/' to the URL X-Git-Tag: v1.3.23~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11c77a39b7fb24dcc62011a7e5d7d45fb973af79;p=thirdparty%2Fhaproxy.git [MINOR] http redirect: add the ability to append a '/' to the URL Sometimes it can be desired to return a location which is the same as the request with a slash appended when there was not one in the request. A typical use of this is for sending a 301 so that people don't reference links without the trailing slash. The name of the new option is "append-slash" and it can be used on "redirect" statements in prefix mode. (cherry picked from commit 81e3b4f48d168da55c7902d51bb71212f2a817d6) --- diff --git a/doc/configuration.txt b/doc/configuration.txt index 7ccc09c84d..40907cad03 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -3004,6 +3004,12 @@ redirect prefix [code ]