In article <42**************@coldmail.com>,
cp*****@coldmail.com says...
This helps get round the ugly bog standard message. But is there a way
to find out what the non existant page name was. I want to implement my
own 404 that looks at the non-existant page and tries to offer an
alternative. I figure most 404s come from mis-spillangs.
Diane Wilson wrote: In article <11**********************@g47g2000cwa.googlegroups .com>,
ja*********@gmail.com says...
404.asp:
<% Response.Redirect("404.aspx") %>
-- OR --
404.html
<script>
location.replace("404.aspx");
</script>
For .aspx, the HttpRequest object (Page.Request) has URL string
that was requested.
However, if you use one of the above redirect techniques, you'll only
have the page that issued the redirect. So it's necessary to have
executable logic on the first error page in the chain. If your
host lets you code a 404.asp for all 404 errors, that's where you'd
have to put the code.
If your site has its own search capability, I'd certainly put the
search field and button on whatever 404 handling page you use.
Diane