First of all, how do I get my generic error page to be called when someone types something like
somepage.htm, somepage.asp, where none of those files exist? If they type somepage.aspx, the page is called. How do I get .Net to call the generic error page in these cases?
Secondly, when there is an error on a page, a 302 redirect is called by .Net which directs the browser to the generic error page. While this is good from a user's perspective, it's NOT GOOD from a search engine perspective.
Why?
Because the search engine sees that a page is redirected to a valid page. So for all pages on your site that throw an error, your generic error page will be indexed!!
How do I get this page to return a 404 error and not a 302 - with no 302 redirect visible to the spider?
Thanks.
somepage.htm, somepage.asp, where none of those files exist? If they type somepage.aspx, the page is called. How do I get .Net to call the generic error page in these cases?
Secondly, when there is an error on a page, a 302 redirect is called by .Net which directs the browser to the generic error page. While this is good from a user's perspective, it's NOT GOOD from a search engine perspective.
Why?
Because the search engine sees that a page is redirected to a valid page. So for all pages on your site that throw an error, your generic error page will be indexed!!
How do I get this page to return a 404 error and not a 302 - with no 302 redirect visible to the spider?
Thanks.