Then I add this code to Web.Config inside the <system.web> sections.
<error statusCode="404" redirect="http://google.com"/>
When I access http://localhost:24079/dasdad.dasd
The website is not redirect to google.com. Why is it ?
I didn't modify anything about C# code. I create an ASP.net MVC project then modify the web.config to add 404 error page
This post has been edited by tieugiang94: 11 November 2013 - 07:40 PM