Feature #1446

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

Added by Anonymous almost 3 years ago. Updated almost 2 years ago.

Status:Fixed Start:
Priority:High Due date:
Assigned to:- % Done:

0%

Category:mod_redirect
Target version:1.5.0
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 - Source code that adds support for url.redirect-found to return status code 302 -- angelo (6.8 KB) Anonymous, 11/11/2007 05:37 am

History

Updated by Anonymous almost 3 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

Updated by stbuehler over 2 years ago

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

See #1475 for further discussion.

Updated by Anonymous about 2 years ago

You are not right.

-- mynameisgoor

Also available in: Atom