I am setting up a SharePoint 2016 on-premise (Enterprise) environment. Right after I setup the first Search Service Application, I create a new site collection with Enterprise search center template. Everything works fine.

However all the existing site collection's osssearchresults.aspx page do not work. Any search return 0 result. After investigate, I found it return result after change the query string.

Original string (no result):


After remove the https:// manually from query string(after ?) it works as expected:


Could you please advise how to fix it?


Please check if SSL is configured correctly as per below link.


Also check if you are passing http:// (without S) in u, does it work?

Definitely it has something to do with your SSL certificate not configured correctly. If you SharePoint admin, please check if SSL is configured correctly as per above link. If you are not SharePoint admin, I would suggest you to involve your SharePoint Infrastrucute team to high light this issue.

| improve this answer | |
  • before I raised my question, indeed my SSL is not configured correctly. Nothing but a single error is returned in a full crawl. The error was complaining SSL is not trusted (even I have checked "ignore SSL warning"). I fixed the SSL cert and full crawl again returned about 2000 results. – Mark L Jul 12 '19 at 1:06
  • I have tried passing http:// (without S) in u, still not work. My environment is configured to accept https only (all AAM are https) – Mark L Jul 12 '19 at 1:09

I solved the problem by change the default AAM from "https://servername" to "https://mysharepoint.abc.xyz". The search is working for this string pattern now.


However now something else is breaking. When I click my name at right top corner -> mysite it is redirected to "https://servername" instead of "https://mysharepoint.abc.xyz". hmmmm

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.