Forum Moderators: coopster
How have you set up your 404 pages? If it's an error_document, what code have you used, or if you've used a different mechanism, how is it set up?
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mysite\.net [NC]
RewriteRule (.*) [mysite.net...] [R=301,L]
90% of my site is html and 404 pages work fine for them, but for the small number of php pages, I just get a 'this page cannot be displayed error...this occurs when the server is busy...etc' message when typing a URL that doesn't exist in the address bar.
Let me know if you need further information.
Cheers for your help!
any pages with .php extensions do not show a 404 response for pages that do not exist
Does this mean that if you go to www.example.com/non-existent.php you get a timeout, but www.example.com/non-existent.htm you get a 404?
[edited by: Receptional_Andy at 8:25 pm (utc) on May 20, 2008]
It might be worth asking you hosting company about it, or seeing if the same symptoms occur for other sites on the same host.
is this a serious problem?
I'd say it's a problem that should be fixed, but whether it's serious depends on how many visitors (and spiders) end up following broken links to php files.
something to do with the wordpress code
It's clearly not a general problem with Wordpress code, otherwise other sites would experience the same. Do you have anything in your error logfiles that might throw some light on it?
The file extension (be that .php or anything else) has no bearing whatsoever on users seeing an error page with a correct status, unless something has gone wrong (which again, should be fixed).