Let us have a look at how to enable custom error pages to execute a URL in IIS 7 / 7.5.
In IIS 6.0
Right click on Web Site (Default Web Site in our case) and click on Properties
Under Custom Errors tab, click on the error page you want to customize (in our case 404)
Click Edit…, under Message type: select URL and type the URL /custerr/404.htm
In IIS 7 / 7.5
Click on the Web Site (Default Web Site in our case)
In Features Vi...
[More]