How to solve the problem that the search bar does not support https?
This article mainly introduces the "search bar does not support https how to solve" related knowledge, the editor through the actual case to show you the operation process, the method of operation is simple and fast, practical, I hope this "search bar does not support https how to solve" article can help you solve the problem.
The first method: implement through js
But recently, when I was doing a customer demand, I suddenly thought of a curvilinear way to seek the country. Anyway, I tested that Baidu's in-site search could be used on the https site, and the method was particularly violent.
The idea is to do an input, do a button, enter keywords in input, click button with js control and directly open Baidu site to search for url+ keywords. It works anyway, and I don't know if it's the right thing to do.
The above code:
Search for
Just copy the url of the search results page on your Baidu site and replace the "http://zhannei.baidu.com/cse/search?s=1849457021752692468&entry=1&q="" in the above code to OK.
The second method is realized by php jump.
Search code does not belong to js
Change action to local php file after modification
Search.php is as follows
This is the end of the content about "how to solve the problem that the search bar does not support https". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.