use of http/https protocol

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 Ernest Marcinko 4 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23229
    klopkom
    klopkom
    Participant

    Hi Ernest,

    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.

    Regards,

    Holger

    #23230
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Holger,

    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,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.