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.
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”
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( 'http://', '//', $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
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:
http://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://ww.wp.xz.cn/support/topic/amazon-search-box-with-globalized-search?replies=2#post-6710477
Hope it helps!