Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter WebMaster

    (@marketing-master)

    This happen when I turn on “HTTPS Protocol Rewriting” in CloudFlare plugin.

    I use CloudFlare Flexible SSL, CloudFlare page rule “Always uses https” and CloudFlare plugin.

    Thread Starter WebMaster

    (@marketing-master)

    I assume this is causing the problem:

    By rewriting all the links to start with just “//”, the browser will try to load all the assets over the same protocol as the main page (“https” if using Flexible SSL), CloudFlare will connect to your origin over http to get the asset, and the “mixed content warning” will disappear.

    This also change all links in Amazon link templates and i cant change them:

    “img src=”//www.assoc-amazon.%TLD”

    Plugin Author paulstuttard

    (@paulstuttard)

    Hi,

    Be aware that any Amazon javascript items we don’t have any control over.

    However we can change the URL’s to images and thumbs by filtering the keyword in the template. Something like this might work:

    function alx_extras_https_urls($urls) {
          return str_replace( 'https://', '//', $urls );
       }
    
       add_filter('amazon_link_template_process_image', 'alx_extras_https_urls',11,1);
       add_filter('amazon_link_template_process_thumb', 'alx_extras_https_urls',11,1);

    Note for me I got no images, as the certificate for ‘ecx.images-amazon.com’ was invalid.

    Paul

    Thread Starter WebMaster

    (@marketing-master)

    I see, so we must wait for Amazon. He is the biggest and don’t need to care about SSL. ??

    Thx, BR

    Hey Marketing Master,

    I just stumbled across the same problem and found a simpler solution here:
    https://stackoverflow.com/questions/3890003/amazon-widget-and-ssl

    Just add &internal1 to the scrc of the amazon link or widget etc
    It works for me with the search box Paul created:
    https://www.ads-software.com/support/topic/amazon-search-box-with-globalized-search?replies=2#post-6710477

    Hope it helps!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘SSL and https’ is closed to new replies.