On Feb 5, 2008 9:26 AM, Roan Kattouw roan.kattouw@home.nl wrote:
Simetrical schreef:
Isn't 301 more appropriate?
I have absolutely no idea. OutputPage::redirect() uses 302 by default, so that's what I used. Feel free to change it to whatever you feel is appropriate.
302 Found is a temporary redirect:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.3
301 Moved Permanently is a permanent one:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2
If you know (as here) that the redirect target will never change, you should always use 301, not 302. (And if you know that it might change, you should consider using 303 or 307 as appropriate, instead of 302, but that's a separate question.)