custom 404 page issues
Posted by: jstrauss
Posted on: 2004-10-02 09:16:00
I'm having a weird issue with my custom 404 error page. Clicking on a link or typing http://mydomain.com/not-here.php
doesn't call the custom 404 error page. But oddly, this: http://mydomain.com/not-here.htm will pull up the custom 404 error page. To confuse things further, this: http://mydomain.com/not-here/not-here.php works. (as does .htm.)
My .htaccess file contains:
ErrorDocument 404 /missing.php
So what happens is when an htm file is not found, the 404 page is displayed. When a php file is not found, I get the message "No input file specified." Any file not found in a sub-directory works. I know that the files don't exist, because I'm entering random letters (asdfasdf.php wwlfkfa.htm).
I did some searching on the K-base and on this forum and the answer seems to be an .htaccess file with the contents that I have.
I have the same setup on another domain, and it works as expected. The one I'm having problems with is a new domain.
Any ideas?
TIA
John