Title: Images added with FooGallery don&#8217;t use HTTPS
Last modified: September 5, 2017

---

# Images added with FooGallery don’t use HTTPS

 *  Resolved [redkite](https://wordpress.org/support/users/redkite/)
 * (@redkite)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/images-added-with-foogallery-dont-use-https/)
 * How do I get FooGallery to always use HTTPS for image links?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fimages-added-with-foogallery-dont-use-https%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [redkite](https://wordpress.org/support/users/redkite/)
 * (@redkite)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/images-added-with-foogallery-dont-use-https/#post-9480929)
 * Please – someone answer me? The URL for the images (when you click to edit them)
   is https, but FooGallery’s links are all http.
 *  Thread Starter [redkite](https://wordpress.org/support/users/redkite/)
 * (@redkite)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/images-added-with-foogallery-dont-use-https/#post-9480932)
 * I used this, suggested in another thread, and it made no difference.
 *     ```
       function force_https_the_content($content) {
         if ( is_ssl() )
         {
           $content = str_replace( 'src="http://', 'src="https://', $content );
         }
         return $content;
       }
       add_filter('the_content', 'force_https_the_content');
       ```
   
 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/images-added-with-foogallery-dont-use-https/#post-9481365)
 * Looking at your site – it seems you have solved your problem.
 * Just a note that FooGallery uses the core WordPress media library and functions
   to upload images.
 * There are a few options to force HTTPS images I have found:
    - [https://wordpress.org/plugins/ssl-insecure-content-fixer/](https://wordpress.org/plugins/ssl-insecure-content-fixer/)
    - [https://wordimpress.com/image-urls-forcing-ssl-wordpress/](https://wordimpress.com/image-urls-forcing-ssl-wordpress/)
 *  Thread Starter [redkite](https://wordpress.org/support/users/redkite/)
 * (@redkite)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/images-added-with-foogallery-dont-use-https/#post-9486020)
 * We got the HTTPS working by using a post-processing rule for WP Engine.
 * But the biggest problem (taking 2 hours of me chatting with WPE support) was 
   trying to figure out why the thumbnails were being stored in a cache folder. 
   I finally discovered a post about FooGallery stating that this is what you do
   by default. That was a big mess, maybe you could make it much more obvious that
   FooGallery is doing this, and how it can be forced to use the actual images instead
   of cached images.
 * WP Engine doesn’t by default backup any folders named /cache/ or /caches/ or /
   cached/, so when I rolled back to an earlier site version all my FooGallery image
   thumbnails disappeared. It’s simple to tick the checkbox to force it to use the
   actual image files, but not if it’s not obvious what that’s for.

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

The topic ‘Images added with FooGallery don’t use HTTPS’ is closed to new replies.

 * ![](https://ps.w.org/foogallery/assets/icon-256x256.gif?rev=2602542)
 * [Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel](https://wordpress.org/plugins/foogallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foogallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foogallery/)
 * [Active Topics](https://wordpress.org/support/plugin/foogallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foogallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foogallery/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [redkite](https://wordpress.org/support/users/redkite/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/images-added-with-foogallery-dont-use-https/#post-9486020)
 * Status: resolved