Alrighty, here we go. 1st post on the WP forums. I will try to be short and sweet.
i have WP 2.2.3, PHP 4.4.7, mysql 4.1 (Client API version 3.23.49 ) and Apache 2.0.59.
mod_rewrite is enabled and working. (permalinks are working 100% correctly for posts and categories).
my problem is thus: my error pages do not display! i can see clearly on the Apache Access Log the following:
<IP deleted> - - [02/Jan/2008:11:22:01 +1100] "GET /about/asd HTTP/1.1" 404 14235
<IP deleted> - - [02/Jan/2008:11:22:15 +1100] "GET /about/ad/g/adfg/d/fg/adfg/dafg/ HTTP/1.1" 404 14235
so the 404 error DOES actually happen, but the 404.php page is never actually displayed. without permalinks (ie on default), the 404 page is correctly displayed.
here is the contents of my .htaccess file:
ErrorDocument 404 /404.php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
wordpress is currently installed on the root directly. The server is running Windows XP SP2.
Currently, with permalinks on:
/%year%/%monthnum%/%day%/%postname%/
upon a 404 error, the browser just returns to the index page. The 404.php page does NOT get loaded at any stage, as currently i am emailed automatically upon any 404 error via a script on the page. (and apache logs do not indicate 404.php is being loaded.)
thank you for your help.