Hey everyone, I need your help again..
I recently discovered that if people attempt to go to a page that doesn't exist on my server, if it has a .php extension, they simply get "Input file not specified".
I contacted tech support, and got this response:
After researching your issue, I have found why you cannot get a 404 error page on a .php. This is because PHP pages do not run on Apache like a .html page. They are run from CGI, which means they do not have the same functionality as .html pages. Unfortunately, there is no work around for this issue.
I have getting your error PHP page when access a non-existent .html page.
This is the ticket that I sent to my host (www.verio.com)
I have in my .htaccess in my root directory this line:
ErrorDocument 404 http://www.lisa-jill.com/404.php
However, if you go to a .php page that doesn't exist, such as:
you only get this error:
No input file specified.
Can you tell me how I would send those errors to the 404 page? My directive appears to work in cases where it is a .htm type file not found, just not anything with a .php
does anyone have any comments on how I can get around this? I find thi to be extremely offputting. Is this specific to my host, or is this a common issue? workarounds?
404 on php pages
I did a quick search and found this: http://bugs.php.net/bug.php?id=24958
One temporary way around it would be to create a .html file that redirects to the php file.
404 on php pages
Thank you, Tony.
Rather than work around this, due to the complete lack of assistance from my host in what I view as a critical, and unfortunately common issue - that I'm su re would not be specific to me, I am changing hosts.
*sighs* Was with them for 10 years, I hate having to ditch them, but sometimes change must happen.
Thank you for your assistance with this. =)