I've place this in web.config <system.webServer>
<httpErrors errorMode="Custom" defaultResponseMode="ExecuteURL">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" subStatusCode="-1" path="/cv/" responseMode="ExecuteURL" />
</httpErrors>
The path that is used temporarily here [myapplication]/cv/ returns a page.
But if I go to [myapplication]/[anything that doesn't exists] to get a 404 response, juste nothing happens.
This is currently working on my old web form site, but I can't get it working on a MVC4 site. How can I make this work ? (I don't want to use the "Redirect/File" methods)