I can't seem to get rid of the 404 status code on my 404 error handler. I used .htaccess to set the 404 error handler to a custom php page. The php page does late-loading of content at an alternate URI rather than 302 redirect. It needs to return HTTP code 200, but instead it's still always 404 Not Found.
I used:
header(HTTP/1.1 200 Ok);
.. and checked with ..
http://www.seoconsultants.com/tools/headers/
I found a php bug report here but it's dated 2003!! http://bugs.php.net/bug.php?id=24177
Assuming the bug still exists, 4096 bytes is unreasonable; the content I'm transferring isn't that big.
I googled for the ability to set the status code and only found the above header() method but also found on php's web site the method: http://us3.php.net/manual/en/function.HttpMessage-setResponseStatus.php
.. but that references module PECL, which isn't available on my web host (HostGator), and which may or may not fix the problem anyway.
Help?