g1smd - 7:32 pm on Nov 3, 2010 (gmt 0)
Yes, but a redirect sends a 301, 302, or 307 code in response to the request. That is, a redirect does not send a 404 HTTP response code.
but put header redirect in the php file. It will then redirect to a dedicated 404 page
It might be that when the browser makes a new request for the new URL mentioned in the redirect header that it then receives a 404 header, for this second request, but that is not at all the same thing as geting the 404 error code returned for the very first URL request.