Title: Force Delivery via HTTPS
Last modified: March 26, 2018

---

# Force Delivery via HTTPS

 *  Resolved [rbarron](https://wordpress.org/support/users/rbarron/)
 * (@rbarron)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/force-delivery-via-https/)
 * Hi Jacob,
 * Is there a setting to force the delivery of photos in albums via https? I’m using
   a ClourFlare flexible SSL and would like to eliminate mixed content on the site.
 * Thank you …. Rick
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fforce-delivery-via-https%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/force-delivery-via-https/#post-10118611)
 * WPPA relies on the wp function **is_ssl()** and other wp functions that provide
   standard urls like **admin_url()**, **includes_url()**, **site_url()** and **
   plugins_url()**. In your case these functions all erroneously return `http://`.
   See this code snippet of your pages source:
 *     ```
       <script type="text/javascript">
       	wppaImageDirectory = "http://rmb.barronsplace.com/wp-content/plugins/wp-photo-album-plus/img/";
       	wppaWppaUrl = "http://rmb.barronsplace.com/wp-content/plugins/wp-photo-album-plus";
       	wppaIncludeUrl = "http://rmb.barronsplace.com/wp-includes";
       	wppaAjaxUrl = "http://rmb.barronsplace.com/wp-content/plugins/wp-photo-album-plus/wppa-ajax-front.php";
       	wppaUploadUrl = "http://rmb.barronsplace.com/wp-content/uploads/sites/8/wppa";
       	wppaIsIe = false;
       	wppaIsSafari = false;
       	wppaUseSvg = true;
       	wppaSlideshowNavigationType = "icons";
       	wppaAudioHeight = 40;
       </script>
       ```
   
 * wppaImageDirectory, wppaWppaUrl and wppaAjaxUrl are – indirectly – based on **
   is_ssl()**
    wppaIncludeUrl is based on **includes_url()** wppaUploadUrl is based
   on **site_url()**
 * I suggest you address this isuue to the wp core developers. This is not a wppa
   issue.
 *  Thread Starter [rbarron](https://wordpress.org/support/users/rbarron/)
 * (@rbarron)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/force-delivery-via-https/#post-10119625)
 * Jacob,
 * Adding the following code to wp-config.php did the trick, thank you for your 
   great plugin and fabulous support ….. Rick
 *     ```
       if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
           $_SERVER['HTTPS'] = 'on';
       ```
   

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

The topic ‘Force Delivery via HTTPS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-photo-album-plus.svg)
 * [WP Photo Album Plus](https://wordpress.org/plugins/wp-photo-album-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-photo-album-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-photo-album-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-photo-album-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-photo-album-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-photo-album-plus/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [rbarron](https://wordpress.org/support/users/rbarron/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/force-delivery-via-https/#post-10119625)
 * Status: resolved