Title: Http links when running a https site
Last modified: August 24, 2016

---

# Http links when running a https site

 *  Resolved [psirek](https://wordpress.org/support/users/psirek/)
 * (@psirek)
 * [11 years ago](https://wordpress.org/support/topic/http-links-when-running-a-https-site/)
 * Hi Paul
 * I run a wordpress blog using https. When i use your plugin to generate a clickable“
   add to cart” button i get a security warning that i am leaving a secure site.
 * `[amazon template=add to cart&asin[us]=B00LTAUTHE&asin[de]=B00NQ23TCU]`
 * When i inspect the link i get
 * [http://www.amazon.co.uk/gp/product/B00LTAUTHE?ie=UTF8&linkCode=as2&camp=1634&creative=6738&tag=oddoneout-21&creativeASIN=B00LTAUTHE](http://www.amazon.co.uk/gp/product/B00LTAUTHE?ie=UTF8&linkCode=as2&camp=1634&creative=6738&tag=oddoneout-21&creativeASIN=B00LTAUTHE)
 * Which i can manually change to https and it works without any errors
 * [https://www.amazon.co.uk/gp/product/B00LTAUTHE?ie=UTF8&linkCode=as2&camp=1634&creative=6738&tag=oddoneout-21&creativeASIN=B00LTAUTHE](https://www.amazon.co.uk/gp/product/B00LTAUTHE?ie=UTF8&linkCode=as2&camp=1634&creative=6738&tag=oddoneout-21&creativeASIN=B00LTAUTHE)
 * Am i missing some setting for switching to https links or is this a limitation
   in the plugin or Amazon?
 * /Poul
 * [https://wordpress.org/plugins/amazon-link/](https://wordpress.org/plugins/amazon-link/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [paulstuttard](https://wordpress.org/support/users/paulstuttard/)
 * (@paulstuttard)
 * [11 years ago](https://wordpress.org/support/topic/http-links-when-running-a-https-site/#post-6104670)
 * It’s a bit of both, there have been a couple of threads on this problem. I can
   provide a couple of enhancements to change the image links and the product links.
 * I don’t think you can get rid of all the http:// urls though, so you will always
   have some errors.
 * Let me know if you want me to develop the enhancements,
 * Paul
 *  Thread Starter [psirek](https://wordpress.org/support/users/psirek/)
 * (@psirek)
 * [11 years ago](https://wordpress.org/support/topic/http-links-when-running-a-https-site/#post-6104687)
 * I think you are right, some links can be changed to https, but not all. For example
 * [http://ecx.images-amazon.com/images/I/41LXbuuMjwL.jpg](http://ecx.images-amazon.com/images/I/41LXbuuMjwL.jpg)
 * Prompts the user because the hostname on the certificate does not match the url.
   But some links works fine.
 * It would be great to have some way to force a specific link to switch blindly
   to https, something like
 * [amazon asin=12345678 forceHttps=true]
 * Then every existing link is untouched and it is the link creators responsibility
   to check if the link works. Having a global property is too risky in my opinion.
   But if you know of certain link types that always works with https then it would
   be great to have a global property for just those types, e.g. “Force https for
   add to cart links”.
 * Maybe it should not be forceHttps at all but “Match URL property” setting, so
   if one has a site with mixed http / https content the links would match
 * What are you thoughts on the above?
 * /Poul
 *  Thread Starter [psirek](https://wordpress.org/support/users/psirek/)
 * (@psirek)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/http-links-when-running-a-https-site/#post-6104846)
 * I bypassed the problem by editing the templates and forcing https on my troublesome
   links
 *  [stefaanvandamme](https://wordpress.org/support/users/stefaanvandamme/)
 * (@stefaanvandamme)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/http-links-when-running-a-https-site/#post-6104862)
 * how did you solve it ? i have the same issue (even after changing template link
   into https)
 *  Thread Starter [psirek](https://wordpress.org/support/users/psirek/)
 * (@psirek)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/http-links-when-running-a-https-site/#post-6104863)
 * I only had the problems with my “Add to cart” links, so I just changed the “Add
   to cart” template, the http:// to https:// and that just worked fine for me. 
   It was a while ago, so now I use this template where I point to locally downloaded
   images of the buy buttons:
 * <form method=”GET” action=”[https://www.amazon.%TLD%/gp/aws/cart/add.html&#8221](https://www.amazon.%TLD%/gp/aws/cart/add.html&#8221);
   style=”display:inline”>
    <input type=”hidden” name=”AssociateTag” value=”%TAG%”/
   > <input type=”hidden” name=”SubscriptionId” value=”%PUB_KEY%”/> <input type=”
   hidden” name=”ASIN.1″ value=”%ASIN%”/> <input type=”hidden” name=”Quantity.1″
   value=”1″/> <input type=”image” name=”add” value=”Buy from Amazon.%TLD%” border
   =”0″ alt=”Buy from Amazon.%TLD%” src=”//cdn.odd-one-out.serek.eu/wp-custom/amazon/%
   MPLACE_ID%/buy-from-tan.gif”> </form>
 * Notice the last src=”// line which used https if the rest of the site runs https.
   Not sure what the standard template does here
 *  [Alex](https://wordpress.org/support/users/alexander_fuchs/)
 * (@alexander_fuchs)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/http-links-when-running-a-https-site/#post-6104865)
 * Hi, I am trying to run on https, too. Have you implemented the mentioned change?
 *  [stefaanvandamme](https://wordpress.org/support/users/stefaanvandamme/)
 * (@stefaanvandamme)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/http-links-when-running-a-https-site/#post-6104866)
 * i couldn’t get it to work. but it was only for one item, so i copied the image
   locally and linked to amazon myself
 *  [Alex](https://wordpress.org/support/users/alexander_fuchs/)
 * (@alexander_fuchs)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/http-links-when-running-a-https-site/#post-6104867)
 * I got it to work by making a own plugin fork, I replaced the image URL
    [http://ecx.images-amazon.com/](http://ecx.images-amazon.com/)
 * with
 * [https://images-na.ssl-images-amazon.com/](https://images-na.ssl-images-amazon.com/)
 * In every AWS query.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Http links when running a https site’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/amazon-link_070606.svg)
 * [Amazon Link](https://wordpress.org/plugins/amazon-link/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-link/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-link/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-link/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-link/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-link/reviews/)

 * 8 replies
 * 4 participants
 * Last reply from: [Alex](https://wordpress.org/support/users/alexander_fuchs/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/http-links-when-running-a-https-site/#post-6104867)
 * Status: resolved