Project

General

Profile

Actions

Feature #1446

closed

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

Added by Anonymous about 17 years ago. Updated about 16 years ago.

Status:
Fixed
Priority:
High
Category:
mod_redirect
Target version:
ASK QUESTIONS IN Forums:

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


Files

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
Actions #1

Updated by Anonymous about 17 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

Actions #2

Updated by stbuehler almost 17 years ago

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

See #1475 for further discussion.

Actions #3

Updated by Anonymous over 16 years ago

You are not right.

-- mynameisgoor

Actions

Also available in: Atom