From 81e3b4f48d168da55c7902d51bb71212f2a817d6 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. --- 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 2440b1b0d..528b991e0 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -3354,6 +3354,12 @@ redirect prefix [code ]