custom server errors and wen.config

  • Thread starter Thread starter Adie
  • Start date Start date
A

Adie

Hi, I have custom errors set in the web.config and am wanting to
redirect any bad url requests; 404 etc back to index.aspx

In web.config i have:
<customErrors mode="On" defaultRedirect="error404.aspx" />

which redirects to error404.aspx, then in error404.aspx I have:
<meta http-equiv="refresh" content="3;url=index.aspx"> which seems to
work fine if i mess with the url file name but not the file extension,
so if I typle "indx.aspx" the server will redirect back to index.aspx
but a request for "index.asp" causes a plain old 404 error.

Any ideas why this must be?
 
Web.config is ASP.NET-only and is not handled when referencing a nonexistent
file or an ASP Classic or HTML file.

Jon
 
Back
Top