Posted by Colin McKinnon on 04/16/06 00:31
lawrence k wrote:
> Not especially a PHP question, but how does one indicate a 302
> redirect? Or does Apache do that automatically if I use PHP to send a
> location header?
>
No, when you use PHP to send a location header you are doing that, however
the default behaviour in PHP is to do exactly what you suggest - i.e. send
a 302 header - this is most likely WRONG, and really you should be sending
a 301,303 or 307 depending on the context. RTFM.
C.
[Back to original message]
|