Setting HTTP status code for redirection
I would like to set the status code for a redirection.
Updated by Anonymous almost 16 years ago
Perhaps it would be easier to add a new setting, since the only two status codes that are used for redirection are 301 and 302.
I would recommend leaving the url.redirect to using the permanent status code of 301. To redirect with the found status code of 302, a new setting such as redirect-temp or redirect-found would be ideal.
url.redirect-found = (
".*" => "http://www.%1"
I took the mod_redirect.c from version 1.4.18 and modified the code to include this functionality. It should be attached to this ticket.
Also available in: Atom