Title: Replace both http and https url
Last modified: September 12, 2017

---

# Replace both http and https url

 *  Resolved [jamesdlow](https://wordpress.org/support/users/jamesdlow/)
 * (@jamesdlow)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/replace-both-http-and-https-url/)
 * Hi,
 * We have a site which had the blog url as an https URL. However previously we 
   had used it without a secure url, so many of our old posts point to just http.
   Because this is not the blog url as coming from wordpress, cdn enabler does not
   replace these urls wih the CDN url.
 * However, I have modified the plugin so that this can be done. I have added it
   as an option in the settings, and tried to follow the syntax style that you use
   in the plugin as much as possible. I would be grateful if you could review the
   files and update the version in the WordPress plugin SVN. You can download the
   files here:
    [http://jameslow.com/cdn-enabler.zip](http://jameslow.com/cdn-enabler.zip)
 * Thanks,
    James

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

 *  [sebastiankro](https://wordpress.org/support/users/sebastiankro/)
 * (@sebastiankro)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/replace-both-http-and-https-url/#post-9488465)
 * Hi James,
 * You can make a pull request on Github and we will check it out:
    [https://github.com/keycdn/cdn-enabler](https://github.com/keycdn/cdn-enabler)
 *  Thread Starter [jamesdlow](https://wordpress.org/support/users/jamesdlow/)
 * (@jamesdlow)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/replace-both-http-and-https-url/#post-9488802)
 * Thanks so much for the reply. I’ve created the pull request already. Github is
   so much easier 🙂
 * [https://github.com/keycdn/cdn-enabler/pull/1](https://github.com/keycdn/cdn-enabler/pull/1)

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

The topic ‘Replace both http and https url’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [jamesdlow](https://wordpress.org/support/users/jamesdlow/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/replace-both-http-and-https-url/#post-9488802)
 * Status: resolved