S
stuart.bromhead
Can you help!!
I have put in my web.config:
<customErrors mode="On" defaultRedirect="~/ErrorPage.aspx">
<error statusCode="403" redirect="~/ErrorPage.aspx"/>
<error statusCode="404" redirect="~/ErrorPage.aspx"/>
</customErrors>
This works when you put in a invalid page ie www.mysite.com/test.aspx.
The problem I have is that if you put anything else in the URL like:
www.mysite.com/test.asp or www.mysite.com/test the error page is NOT
shown.
What have I done wrong?????
I have put in my web.config:
<customErrors mode="On" defaultRedirect="~/ErrorPage.aspx">
<error statusCode="403" redirect="~/ErrorPage.aspx"/>
<error statusCode="404" redirect="~/ErrorPage.aspx"/>
</customErrors>
This works when you put in a invalid page ie www.mysite.com/test.aspx.
The problem I have is that if you put anything else in the URL like:
www.mysite.com/test.asp or www.mysite.com/test the error page is NOT
shown.
What have I done wrong?????