Feature #670
closedmod_redirect uses 301. Should be 302.
Description
301 means permanently moved, which means the user agent is supposed to forget about the orignal URL and switch to the new one. 302 means found, but go to this URI instead, "for now" (i.e. temporarily).
Despite whether browsers behave like this or not, 302 is more acceptable under HTTP, and does not preclude the server's master from changing a redirect in the future.
mod_redirect.c: line 247
con->http_status = 301;
should be:
con->http_status = 302;
Thanks,
Steve
Updated by lfe almost 19 years ago
I agree, 302 is probably a better pick.
Also - Apache's Redirect defaults to 302.
Adding a http status code flag/option wouldn't hurt either.
Updated by Anonymous over 18 years ago
The option to choose 301 or 302 redirects would be preferred. Using 301 redirects is more search engine friendly and preferred in many cases.
-- dnspark
Updated by Anonymous over 17 years ago
Different situations require different status codes. For normal use, leaving the 302 code is fine, but for one particular application I've had to edit the source and recompile Lighttpd with the con->http_status = 302.
I would like to see both options, perhaps something like redirect-temp or redirect-found would be appropriate?
url.redirect-temp = (
".*" => "http://www.%1"
)
-- angelo
Updated by stbuehler about 17 years ago
- Status changed from New to Fixed
- Resolution set to duplicate
See #1475 for further discussion.
Also available in: Atom