<customErrors mode="RemoteOnly" defaultRedirect="/ErrorPages/MyGeneralError.aspx"> <error statusCode="404" redirect="/ErrorPages/My404Error.aspx" /></customErrors>