S
Shaun Wilde
I am trying to handle a 404 errors and redirect them to the correct page
based on criteria
I was hoping to catch the error in the global error handler and forward via
Server.Transfer to the correct page such that it would appear to be the page
requested. ow this does work to a fashion but it seems that I don't have
access to the session state when I undergo a Server.Transfer from the
Application_Error.
Can anyone suggest another way of achieving my goal i.e. if a request is
made to a page that does not exists I can use the name of the requested page
and redirect it to the correct page within my site but do it such that the
browser does not change its URL in the address.
I want to avoid Response.Redirect due to problems I have with google and it
just abandoning the search of the site when these requests happen to it.
Thanks
Shaun
based on criteria
I was hoping to catch the error in the global error handler and forward via
Server.Transfer to the correct page such that it would appear to be the page
requested. ow this does work to a fashion but it seems that I don't have
access to the session state when I undergo a Server.Transfer from the
Application_Error.
Can anyone suggest another way of achieving my goal i.e. if a request is
made to a page that does not exists I can use the name of the requested page
and redirect it to the correct page within my site but do it such that the
browser does not change its URL in the address.
I want to avoid Response.Redirect due to problems I have with google and it
just abandoning the search of the site when these requests happen to it.
Thanks
Shaun