Project

General

Profile

Feature #1446

add url.redirect-found option to send status code 302 in the redirect module

Added by Anonymous about 10 years ago. Updated about 9 years ago.

Status:
Fixed
Priority:
High
Assignee:
-
Category:
mod_redirect
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

I posted modified source to mod_redirect.c. I've also posted the source in ticket #61 (http://trac.lighttpd.net/trac/ticket/61). I am unsure if past tickets are ignored or not, so I am creating a new ticket. The new feature will allow those to use the redirect functionality without having to modify the code.

You should be able to do a diff against the version of mod_redirect.c in the repository for version 1.4.18.

Thanks,
Angelo Mandato

-- angelo

mod_redirect.c (6.81 KB) mod_redirect.c Source code that adds support for url.redirect-found to return status code 302 -- angelo Anonymous, 2007-11-11 05:37

History

#1

Updated by Anonymous about 10 years ago

The only difference between the latest attachment and the previous is the addition of "url.redirect-found" to the config_values_t cv[] structure. The addition is needed so no warnings are printed regarding an unknown configuration setting or something to that effect.

config_values_t cv[] = { { "url.redirect", NULL, T_CONFIG_LOCAL, T_CONFIG_SCOPE_CONNECTION }, /* 0 */ { "url.redirect-found", NULL, T_CONFIG_LOCAL, T_CONFIG_SCOPE_CONNECTION }, /* 0 */ { NULL, NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET }
};

-- angelo

#2

Updated by stbuehler almost 10 years ago

  • Status changed from New to Fixed
  • Resolution set to duplicate

See #1475 for further discussion.

#3

Updated by Anonymous over 9 years ago

You are not right.

-- mynameisgoor

Also available in: Atom