Search Does Not Return HTTPS Links for Exchange Articles (197249)



The information in this article applies to:

  • Microsoft Site Server 3.0 Commerce Edition

This article was previously published under Q197249

SUMMARY

When you crawl an Exchange public folder using Site Server Search, you may notice that all links returned are for HTTP instead of HTTPS, even though your Outlook Web Access pages are secured using SSL.

MORE INFORMATION

Search assumes that all links being returned for Exchange documents use HTTP. In order to get the results to use HTTPS, add code to the search page to strip the HTTP off of the DocAddress property and add HTTPS to the string. The following is a sample piece of code that strips off HTTP and then adds HTTPS for passing to the Java Script routines that generate the links for the browser:

   linkurl = "https" & right(rs("docaddress"),len(rs("docaddress"))-4)
       if ExchangeViewer="OWA" or OutlookBrowser=false then
          Link = "JavaScript:self.openNewWindow(" & chr(34) & linkurl &
   "&usemainwnd=1" & chr(34) & ", 640,500)"
          LinkTarget = ""
       elseif ExchangeViewer="Outlook" or ExchangeViewer="both" then
          Link = "JavaScript:DisplayMsg(" & chr(34) & linkurl & "=1" &
          chr(34) & ")"
          LinkTarget = ""
       end if
          if ExchangeViewer="both" then
             OWALink = "JavaScript:self.openNewWindow(" & chr(34) &
   linkurl              & "&usemainwnd=1" & chr(34) & ", 640,500)"
       end if
				

Modification Type:MajorLast Reviewed:6/24/2004
Keywords:KB197249