Actions
Feature #61
closedSetting HTTP status code for redirection
Status:
Fixed
Priority:
High
Category:
mod_redirect
Target version:
-
ASK QUESTIONS IN Forums:
Description
I would like to set the status code for a redirection.
-- lighttpd
Files
Updated by Anonymous about 17 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.
Example:
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.
-- angelo
Updated by stbuehler almost 17 years ago
- Status changed from New to Fixed
- Resolution set to duplicate
See #1475 for further discussion.
Actions
Also available in: Atom