Setting HTTP status code for redirection
ASK QUESTIONS IN Forums:
I would like to set the status code for a redirection.
Updated by Anonymous over 15 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.
Updated by stbuehler over 15 years ago
- Status changed from New to Fixed
- Resolution set to duplicate
See #1475 for further discussion.
Also available in: Atom