Hi,
I would like to redirect a client when SharePoint Services 3.0 or MOSS 2007
give back a 404 status code.
I tried to use ASP.Net and IIS custom error pages but they do not get used -
WSS always returns status 404 and a response text of 404 NOT FOUND.
I added a custom IHttpModule and handled events like PreSendRequestHeaders,
PostRequireRequestState, PostRequestHandlerExecute, PreSendRequestContent
and EndRequest, but the StatusCode in those call backs is always 200, even
if the client gets back 404.
I tried to position my custom handler at the beginning of the httpModules
section and at the end (only one at any time), just in case the execution
sequence of the HttpModules relative to SPRequest is of importance - made no
difference.
It seems that some WSS ISAPI filter is getting in the way, so that
IHttpModules cannot handle this?
What can I do to intercept (and redirect or change the content of) HTTP
error responses?
Regards,
SvenC