Feature #1475
add url.redirect-found option to send status code 302 in the redirect module
| 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
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