You are here: Re: 404 Header Problems « PHP « IT news, forums, messages
Re: 404 Header Problems

Posted by Jasper Bryant-Greene on 07/14/05 00:50

Scott Taylor wrote:
> I'm trying to issue a 404 header on one of my pages. But it does not
> redirect. I figured, with many function calls before it, that it might
> be outputting something to the screen before the header() command was
> issued. So, I tried issuing a 404 header from a new page, consisting of
> this code:

Issuing a 404 header on a PHP page will not cause the server to redirect
to the standard 404 error page. This behaviour is by design, and is
because of the order in which the request is dealt with.

All you need to do is issue a 404 Not Found header and include() the 404
error page you've set up in Apache config.

Jasper

 

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

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