Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
You cannot search a Windows SharePoint Services 3.0 site when the host header site uses HTTP and HTTPS
Article ID: 927919 - View products that this article applies to.
Consider the following scenario. You create a new Web application in Microsoft Windows SharePoint Services 3.0. Then, you create a new site collection by using the Stsadm.exe command-line tool. For example, you run the following command at the command prompt:
stsadm -o createsite -url http://HostHeaderSiteURL -ownerlogin domain/username -hhurl http://URLOfWebApplicationIn the new Web site properties dialog box in Microsoft Internet Information Services (IIS), you import a certificate. Additionally, you enable the site to use HTTP and HTTPS.
In this scenario, when you try to perform a search on the https://URL Web site, no search results are returned.
This issue occurs if both HTTP and HTTPS are used for the same host header site. You cannot have the same site collection exposed over HTTP and HTTPS, and then perform a search to return results over both protocols. If you want the host-named site collection to be searchable over HTTP, put the host-named collection in the HTTP Web application. If you want the host-named site collection to be searchable over HTTPS, put the host-named site collection in the HTTPS Web application.
To work around this issue, create separate Web applications. Create one Web application that uses HTTP and create one Web application that uses HTTPS. Then, map the Web application that uses HTTPS to the Web application that uses HTTP by using Extend an existing Web application. After you create the separate Web applications, you must associate the site collection with the new Web applications. In the following steps, assume that you already created a Web application that uses HTTP.
To create a new Web application for the HTTPS site, follow these steps: