Title: HTTPS reqrite does not work
Last modified: August 30, 2016

---

# HTTPS reqrite does not work

 *  Resolved [Tubal](https://wordpress.org/support/users/tubal/)
 * (@tubal)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/https-reqrite-does-not-work/)
 * Good plugin!
 * I see it’s based on CDN Linker.
 * The HTTPS rewrite option does not work and here’s why:
 * In the file `cnd_enabler.class.php` you’re using `get_option('siteurl')` but 
   that always retrieves the non-ssl blog url. You should use the function `get_site_url()`
   so that it retrieves the blog url with or without ssl when appropriate and rewriting
   under each scheme works. Tested.
 * So substitute all `get_option('siteurl')` calls for `get_site_url()` and you’re
   good to go 😉
 * Regards,
 * Túbal
 * [https://wordpress.org/plugins/cdn-enabler/](https://wordpress.org/plugins/cdn-enabler/)

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

 *  Plugin Author [KeyCDN](https://wordpress.org/support/users/keycdn/)
 * (@keycdn)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/https-reqrite-does-not-work/#post-6643404)
 * Normally, get_option(‘siteurl’) just works fine also for HTTPS sites. Did you
   set this (‘FORCE_SSL_ADMIN’, true); in wp_config.php?
 * Please also check what the value is in your wp_options table for the entry siteurl.
   Does it start with [https://](https://wordpress.org/support/topic/https-reqrite-does-not-work/?output_format=md)?
 * The problem with get_site_url() is that is can be easily changed by another plugin.
 *  Plugin Author [KeyCDN](https://wordpress.org/support/users/keycdn/)
 * (@keycdn)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/https-reqrite-does-not-work/#post-6643504)
 * We might change this if others have similar issues. Please contact us directly
   if needed: [https://www.keycdn.com/contacts](https://www.keycdn.com/contacts)
 *  [herold](https://wordpress.org/support/users/herold/)
 * (@herold)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/https-reqrite-does-not-work/#post-6643537)
 * Same issue here!
    Just switched over to SSL and the plugin refuses to rewrite
   the CDN address, which was working fine before.
 *  [herold](https://wordpress.org/support/users/herold/)
 * (@herold)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/https-reqrite-does-not-work/#post-6643538)
 * Has been resolved – simply forgot to check the box in the plugin for https connection.

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

The topic ‘HTTPS reqrite does not work’ is closed to new replies.

 * ![](https://ps.w.org/cdn-enabler/assets/icon-256x256.png?rev=2472538)
 * [CDN Enabler](https://wordpress.org/plugins/cdn-enabler/)
 * [Support Threads](https://wordpress.org/support/plugin/cdn-enabler/)
 * [Active Topics](https://wordpress.org/support/plugin/cdn-enabler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cdn-enabler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cdn-enabler/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [herold](https://wordpress.org/support/users/herold/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/https-reqrite-does-not-work/#post-6643538)
 * Status: resolved