Title: Cart image not secure, adding https breaks cart image
Last modified: August 1, 2019

---

# Cart image not secure, adding https breaks cart image

 *  Resolved [WebDev2.0](https://wordpress.org/support/users/socalkingg/)
 * (@socalkingg)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/cart-image-not-secure-adding-https-breaks-cart-image/)
 * I have been working on a Woocommerce site for a few years. At one point, my store
   had the (example) url [http://yourfavoritestore.com](http://yourfavoritestore.com).
   I eventually changed it to [http://favoritestore.com](http://favoritestore.com).
   I noticed I had a few images that were pulling from the old url so I used the
   better search and replace plugin to swap urls.
 * I also used the SSL checker on jitbit.com and noticed I had a few images being
   served over http despite having my website set to force SSL. I used the replace
   tool on these and all went well, except when I tried to update the image link
   for the shopping cart. Changing from http to https breaks the shopping cart image.
   I am using a jpg image that I got from a royalty free site that looks slightly
   better than the standard options in Woocommerce.
 * The tool worked fine on every other image except the cart one. The only difference
   between this image and the others is that this one is in the header. I posed 
   this question on a different forum and someone mentioned that I may have my WordPress
   url settings configured incorrectly. They stated that if my url is not https 
   in WordPress general settings, then my image will not be uploaded with https.
   MY url is in fact listed with only http (no S), in the WordPress settings. This
   contradicts the information my hosting company is telling me because they say
   every image is uploaded with https regardless. I don’t know which is true.
 * If that is true, then I still don’t understand why the better search and replace
   tool would break only that image. Currently the way my website is set up, if 
   someone types in [http://favoritestore.com](http://favoritestore.com), it will
   redirect to [https://www.favoritestore.com](https://www.favoritestore.com) before
   eventually landing on [https://favoritestore.com](https://favoritestore.com).
   Cloudflare requires the www and the final redirect is without the www because
   Apple Pay on the stripe plugin will not work with the www in the address. I am
   using CLoudflare aggressive caching, another person mentioned it could be a caching
   issue, but again the cart image is the only one that has the issue. Any advice
   is appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcart-image-not-secure-adding-https-breaks-cart-image%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Phillip C. a11n](https://wordpress.org/support/users/phillipwoo/)
 * (@phillipwoo)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/cart-image-not-secure-adding-https-breaks-cart-image/#post-11829741)
 * Hello [@socalkingg](https://wordpress.org/support/users/socalkingg/),
 * If the site is using HTTP in the general settings then this is why the image 
   won’t load properly. Even though all images load over HTTPS according to the 
   host, it doesn’t mean that other functions within the site will see it that way.
   With this setting using HTTP you will have issues, especially payment gateways.
   You should update this setting in the General WordPress settings and test again.
 * I hope this helps!
 *  [Phillip C. a11n](https://wordpress.org/support/users/phillipwoo/)
 * (@phillipwoo)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/cart-image-not-secure-adding-https-breaks-cart-image/#post-11853763)
 * We haven’t heard back from you and hope you have found a solution to this. I 
   am going to mark this as Resolved at this time. If you have another issue please
   feel free to open a new post. 🙂
 * Thanks!

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

The topic ‘Cart image not secure, adding https breaks cart image’ is closed to new
replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)

 * 2 replies
 * 2 participants
 * Last reply from: [Phillip C. a11n](https://wordpress.org/support/users/phillipwoo/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/cart-image-not-secure-adding-https-breaks-cart-image/#post-11853763)
 * Status: resolved