Project

General

Profile

Feature #1475

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

Added by Anonymous almost 12 years ago. Updated over 3 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
mod_redirect
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

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

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

Actions

History

#1

Updated by stbuehler over 11 years ago

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

#2

Updated by Anonymous over 11 years ago

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

-- angelo

#3

Updated by stbuehler over 11 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

#4

Updated by hoffie over 11 years ago

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

#5

Updated by Jochem about 8 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?

#6

Updated by gstrauss over 3 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
#7

Updated by gstrauss over 3 years ago

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

Updated by stbuehler over 3 years ago

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

Also available in: Atom