• Got a Tipila, google, windows live or facebook account ?

We need to send the correct http error code to the client and keep the url in the browser same as the requested one. But the customErrors config setting did not do this so use this method instead.

Add following to turn off custom errors (in system.web) of web.config

<customErrors mode="Off" />

Then add the following to the system.webserver section of the web.config

 <httpErrors errorMode="Custom" existingResponse="Replace">
  <remove statusCode="404" subStatusCode="-1" />
  <remove statusCode="500" subStatusCode="-1" />
  <error statusCode="404" path="Error404.html" responseMode="File" />
  <error statusCode="500" path="Error.html" responseMode="File" />

More info check this tip

Login to Tipila