Forum Discussion
Vishal_96707
Jan 23, 2009Nimbostratus
Can you guys help me with troubleshooting. The first part didnt work as expected. I am not getting any response code when i try to go to non-existent sharepoint site.
when HTTP_RESPONSE {
Check if response code is a 404 and the Content-Length header value is 0
if {([HTTP::status] == 404) && !([HTTP::header value "Content-Length"] == 0)}{
log local0. "[IP::client_addr]:[TCP::client_port]: Found 404 response with Content-Length as [HTTP::header value "Content-Length"]"
HTTP::redirect "https://intranet.mydomain.com/_layouts/redirects/Default.aspx?URL=$MYHOST$MYURL"
}
}
I want the user requests using Web Cliet or WebDav services and calling sharepoint using UNC to not redirect for checks like Desktop.ini, file existence check for owerwrite, thumbs.db etc.
Thanks in advance.