Title: Option to Append https
Last modified: November 18, 2017

---

# Option to Append https

 *  Resolved [luxinterior](https://wordpress.org/support/users/luxinterior/)
 * (@luxinterior)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/option-to-append-https/)
 * I’m using your plugin on my site and would like to be able to force https to 
   the beginning of cdn links. At the moment it’s stripping them and just putting//
   cdn.xxx.com but I need to have them there to comply with facebook og:image requirements.
   Without https the image link is flagged as invalid and sometimes it will post
   the image and sometimes it won’t. I’ve tried appending it via code but for some
   reason, it comes out as ‘https:[https://cdn.xxx.com&#8217](https://cdn.xxx.com&#8217);
   which is strange.
 * Any help would be appreciated.
 * Lux

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

 *  [Mark Barnes](https://wordpress.org/support/users/mark8barnes/)
 * (@mark8barnes)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/option-to-append-https/#post-9716760)
 * Yes, I have exactly the same problem. In my case, it’s because I use an RSS to
   email service, and email clients require the protocol (http or https). I know
   stripping the protocol is valid HTML, but there’s really no benefit in doing 
   so when it has so many side-effects.
 *  [Mark Barnes](https://wordpress.org/support/users/mark8barnes/)
 * (@mark8barnes)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/option-to-append-https/#post-9716798)
 * Whilst we wait for BunnyCDN to fix this, it’s relatively easy to modify the code.
 * On line 66 of bunnycdn.php, just replace the `"//"` with `"http://"` or `"https://"`.
   Or, better, replace it with `(is_ssl() ? 'https://' : 'http://')`
 * In the latter case, the line will now be:
 * `$rewriter = new BunnyCDNFilter($baseUrl, (is_ssl() ? 'https://' : 'http://').
   $options["cdn_domain_name"], $options["directories"], $options["excluded"]);`
 *  Thread Starter [luxinterior](https://wordpress.org/support/users/luxinterior/)
 * (@luxinterior)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/option-to-append-https/#post-9716820)
 * Thanks for the tip Mark! Hopefully, BunnyCDN will do something about it soon.
 * Lux
 *  Plugin Author [bunny.net](https://wordpress.org/support/users/bunnycdn/)
 * (@bunnycdn)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/option-to-append-https/#post-9740579)
 * Hello Lux, Mark,
 * Sorry about the issue and a bit of a delayed response. Thank you, Mark, for helping
   out in the meanwhile. We’ve now updated our plugin to correct the problem.
 * BunnyCDN
 *  [Mark Barnes](https://wordpress.org/support/users/mark8barnes/)
 * (@mark8barnes)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/option-to-append-https/#post-9741122)
 * Thanks!

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

The topic ‘Option to Append https’ is closed to new replies.

 * ![](https://ps.w.org/bunnycdn/assets/icon-256x256.png?rev=3051114)
 * [bunny.net - WordPress CDN Plugin](https://wordpress.org/plugins/bunnycdn/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bunnycdn/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bunnycdn/)
 * [Active Topics](https://wordpress.org/support/plugin/bunnycdn/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bunnycdn/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bunnycdn/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Mark Barnes](https://wordpress.org/support/users/mark8barnes/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/option-to-append-https/#post-9741122)
 * Status: resolved