You are here: Re: how does one send a "302 redirect" http header? « PHP Programming Language « IT news, forums, messages
Re: how does one send a "302 redirect" http header?

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация