Monday, February 6, 2012

Wordpress on IIS Cannot Handle 404 File Not Found

August 10, 2009 by Kushel  
Filed under Wordpress

I recently found that now Wordpress site hosted on IIS, could not handle 404 File Not Found errors using the standard 404.php page, although it existed. When a request was sent to a non-existant page, users would see a horribleSeriver Error message rather than the nice lovely Wordpress message that I assumed would be set up as standard (only on Apache!).

I found a simple solution for this by setting up a Custom Error to push a 404 error towards the 404.php page that comes with Wordpress, via the Index.php. You may have direct access to IIS, or for example, you are using a hosted service (in my case, dotNetPanel), but the gist of it is to:

1. Access you custom error setup
2. Add a custom error for status code 404
3. Select ‘Execute a URL on this site’
4. Enter /index.php?error=404

The index.php file will contain the code to send the 404 error to the 404.php file.

  • Twitter
  • Facebook
  • Delicious
  • Bebo
  • StumbleUpon
  • Digg
  • Blogger Post
  • WordPress
  • Share/Bookmark

Related posts:

  1. Domain Blacklist – Online tools for testing your IP Address and Email
  2. Adding a Featured Video Section to a Wordpress Homepage
  3. Getting started with Wordpress and SEO, Video by Matt Cutts and Wordcamp 2009

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

Communicate Through Technology is Digg proof thanks to caching by WP Super Cache!

Communicate Through Technology is Digg proof thanks to caching by WP Super Cache!