Just in Chronicles

Life as a Voyage

Bypassing 404 Error Page on IIS

with one comment

References

If you are using a web hosting company to run your own web site, sometimes you are experiencing unwanted 404 error page that is provided by the hosting company, which is hardly customisable, especially in IIS environment.

However, web.config of IIS is possible for site owners to bypass the 404 error page and show their own 404 page or a solution-generated 404 page like what WordPress does. It’s super simple. Open web.config of your root directory and add the following line within <system.webServer>...</system.webServer>:

<httpErrors existingResponse="PassThrough"/>

That’s it!

Advertisements

Written by Justin Yoo

13/10/2010 at 15:02

Posted in For Windows

Tagged with ,

One Response

Subscribe to comments with RSS.

  1. Thanks for the information, you helped me a lot with this.

    kashifibrahim

    21/05/2015 at 00:56


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s