WordPress' 404 template

What is it that I need to do so that WP’s 404 template functions?

Right now I get the default 404 error provided by Dreamhost. Installing a (or activating Kubrick’s) 404 template does nothing to change this. If I include a redirect line in .htaccess, I get the php error:

Fatal error: Call to undefined function: get_header()…

Thanks for any thoughts/suggestions.

I added “ErrorDocument 404 /index.php?error=404” to my htaccess, you might have to change to /wp/index.php?error=404 … depending on how you configure ur site.

But there are different “reactions” based on the type of wrong URL i type:

  1. http://myhost.com/pig - shows the correct 404 error page
  2. http://myhost.com/pig.html - shows the correct 404 error page
  3. http://myhost.com/pig.php - shows a blank page with the text “No input file specified.”

any ideas?

Thanks, Jimmy. That did the trick.

Regarding your query, I get the same message. However, at another site of mine hosted by Lunarpages, http://myhost.com/pig.php will show the custom 404 error page, so maybe it is a Dreamhost issue. I think that because I do not recall having to do anything, including adding “ErrorDocument 404 /index.php?error=404” to .htaccess or uploading a duplicate file to the error msg bin, if there is such a bin at lunarpages.