Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › use of http/https protocol
This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 3 years, 11 months ago.
- June 21, 2019 at 2:34 pm #23229
there is one further problem with your great Plugin.
my clients website loads over https protocol on frontend. But it must load the backend over http protocol. The site runs over a CDN (cloudflare) with their SSL certificate. And the original web space doesn’t have an SSL certificate because the domain is hosted somewhere else.
With this configuration your plugin tries to load the WordPress admin-ajax.php file over http. Which gets stopped by the browser. So no results are shown. I could get it working by telling your class-asp-init.php to remove the protocol http: or https from the “admin_url(‘admin-ajax.php’)”. This way it works for me.
Would it be possible to implement it into your next update?
The reworked file is attached.
Sorry for asking you that.
HolgerJune 21, 2019 at 3:12 pm #23230
Unfortunately I don’t think I can remove the protocol from that, as not all (mobile) browsers support protocolless URI-s as well as some cache plugins malfunction without using the correct protocol.
This should be resolved via a custom code attached to the admin_url hook. That hook allows you to change parts of the resulting URI-s, and resolves it with any plugins that may use the admin_url(..) function calls. I believe that is the cleanest possible solution.Best,
If you like my products, don't forget to rate them on codecanyon :)
You must be logged in to reply to this topic.