In your IIS config do the following,
Open up Internet Service Manager and right click on the website that you want to set the custom 404 Error for.
Click on Properties and then choose the Custom Errors tab.
Scroll down until you get to the 404 HTTP Error. notice that it has the 404 filename.
You can edit this file dire, or choose a new file (by choosing Edit Properties).
You can also specify that a user be taken to a specific page when a 404 header is returned. To do this, when you click on Edit Properties, you can then specify a URL.
Notice that there are a loadof other HTTP Errors that you can customize, 500 server error for example.
|