From 11c77a39b7fb24dcc62011a7e5d7d45fb973af79 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 10 Jan 2010 00:42:19 +0100 Subject: [PATCH] [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) --- doc/configuration.txt | 10 ++++++++++ include/types/proto_http.h | 1 + src/cfgparse.c | 5 ++++- src/proto_http.c | 10 ++++++++++ 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index 7ccc09c84..40907cad0 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -3004,6 +3004,12 @@ redirect prefix [code ]