Feature #1475


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

Added by Anonymous about 16 years ago. Updated over 7 years ago.

Target version:


Adding new ticket, since my last ticket was SPAMMED, python errors print all over when trying to fix. Previous ticket #1446

I posted modified source to mod_redirect.c. 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.91 KB) mod_redirect.c mod_redirect with new redirect-found option -- angelo Anonymous, 2007-11-30 16:48
mod_redirect.c.diff (1.8 KB) mod_redirect.c.diff Changes made from source in lighttpd-1.4.x branch on February 18, 2008 -- angelo Anonymous, 2008-02-18 14:28

Related issues 1 (0 open1 closed)

Related to Feature #2247: Adding url.redirect-code to 1.4Fixed2010-08-13Actions
Actions #1

Updated by stbuehler almost 16 years ago

I will not try to get a diff out of your code, so either someone else does this or you.

Actions #2

Updated by Anonymous almost 16 years ago

Attached is a diff of the code based on the lighttpd-1.4.x branch.

-- angelo

Actions #3

Updated by stbuehler almost 16 years ago

Ok: What happens if you have both url.redirect and url.redirect-found in one block? Yes, only url.redirect is applied.

And perhaps the other possible redirect codes should be included, too:
- 301: Moved Permanently, as default
- 302: Found (i think this is option is somewhat "deprecated" by 303/307)
- 303: See Other
- 307: Temporary Redirect

Actions #4

Updated by hoffie over 15 years ago

Just on a sidenode, there is already url.redirect-code in 1.5 (see r1580).

Actions #5

Updated by Jochem over 12 years ago

Since 1.5 doesn't seem to be in a hurry, is there any chance the url.redirect-code setting will join the 1.4.x tree?

Actions #6

Updated by gstrauss over 7 years ago

  • Description updated (diff)
  • Status changed from New to Fixed
  • Assignee deleted (jan)
  • Target version changed from 1.5.0 to 1.4.x
Actions #7

Updated by gstrauss over 7 years ago

  • Related to Feature #2247: Adding url.redirect-code to 1.4 added
Actions #8

Updated by stbuehler over 7 years ago

  • Status changed from Fixed to Duplicate
  • Target version deleted (1.4.x)

Also available in: Atom