You are here: Re: Custom error handling in php e.g. 404 not found « All PHP « IT news, forums, messages
Re: Custom error handling in php e.g. 404 not found

Posted by ZeldorBlat on 02/07/06 21:32

J.O. Aho wrote:
> ZeldorBlat wrote:
> > J.O. Aho wrote:
> >> You would need to get every request redirected to one of your pages and that
> >> page would lookup and see if the requested page is there or not, then either
> >> serve the page or generate an error page.
> >>
> >
> > Umm, no. You can tell Apache to use anything as the 404 page (and any
> > of the other error pages). So, you could have him use 404.php instead
> > of his default. Make your own 404.php do whatever you like.
> >
>
> As it looks like the original poster isn't the webmaster of the server, and
> therefore don't have that option to edit the ErrorDocument options in the
> configuration.
>
>
> //Aho

But he does have access to .htaccess. If Override FileInfo is enabled
for the directory, ErrorDocument can be set via .htaccess.

 

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

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