Feature #1475

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

Added by Anonymous 357 days ago. Updated 188 days ago.

Status:New Start:
Priority:Normal Due date:
Assigned to:jan % Done:

0%

Category:mod_redirect
Target version:1.5.0
Pending:

No

Resolution:


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 - mod_redirect with new redirect-found option -- angelo (6.9 KB) Anonymous, 11/30/2007 04:48 PM

mod_redirect.c.diff - Changes made from source in lighttpd-1.4.x branch on February 18, 2008 -- angelo (1.8 KB) Anonymous, 02/18/2008 02:28 PM

History

02/18/2008 01:33 PM - stbuehler

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

02/18/2008 02:26 PM - Anonymous

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

-- angelo

02/18/2008 03:26 PM - stbuehler

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

03/27/2008 01:10 AM - hoffie

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

Also available in: Atom PDF