Forum Moderators: phranque

Message Too Old, No Replies

Help Needed with Custom Error Page

PHP Custom Error Page 404

         

Duncan

9:38 pm on May 25, 2007 (gmt 0)

10+ Year Member



I have a problem with my Custom Error Page on my PHP site. I have the following entry in my .htaccess file:

errorDocument 404 /error404.php

This works fine for incorrectly entered .html and .htm pages but not .php pages.

If I enter www.example.com/nopage.html them it goes to error404.php, but when I enter www.example.com/nopage.php I get the standard "404 Not Found" page. This happens in both Firefox and IE.

I'm not sure what's wrong so any help would be much appreciated.

[edited by: eelixduppy at 11:56 pm (utc) on May 25, 2007]
[edit reason] use example.com, please [/edit]

CDNQuilter

12:17 am on May 26, 2007 (gmt 0)

10+ Year Member



I am interested in the response as I have EXACTLY the same problem with one web hosting company although the same .htaccess file works fine at another.

So it has to be something in the way the server is set up to handle files with the .pho extension.

cheers
jean