WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed a number of WordPress sites across many different platforms and I'm finding that when installed on IIS7 I'm getting the nasty default IIS7 404 error. I nuked Window's hold on the 404 and now I'm receiving the standard.

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

Is there an address I need to redirect to in order to display the WP404? Or does anyone have a better suggestion?

Thanks a ton!

share|improve this question
up vote 3 down vote accepted

This resolved my 404 error. I essentially went into IIS and directed the 404s to a custom URL “/index.php?error=404“

Article that explained how to resolve the error

share|improve this answer

I would redirect to your WP installation's 404 file. This should be in your theme's directory and be titled 404.php. If your installation does not have one by default then add one.

share|improve this answer
Tried that and it now is returning a different error "The page cannot be displayed because an internal server error has occurred" I've tried a number of directory variations like %SystemDrive%\inetpub\wwwroot\wp-content\themes\"theme"\404.php still no dice. – Zach Shallbetter Mar 31 '11 at 17:51
Also tried Executing a URL on the site (relative to the site root) /wp-content/themes/"theme"/404.php that actually returns a blank page. – Zach Shallbetter Mar 31 '11 at 17:54
Don't specify a 404 in your web.config at all, this works on my WP installation. – mrtsherman Mar 31 '11 at 19:01
the web.config path is directly related to IIS7 Error Pages. If I remove it than IIS throws an error Line number:34 Error: The path attribute is invalid – Zach Shallbetter Mar 31 '11 at 20:11
Weird. Looked at my installation. I just have the default. I never did anything to customize 404 errors. My IIS is set to 'Insert Content from Static File' and maps to %SystemDrive%\inetpub\custerr\<LANGUAGE-TAG>\404.htm . But Wordpress seems to handle the 404'ing for me. – mrtsherman Mar 31 '11 at 21:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.