Title: Since last update plugin is removing http/https inside admin area
Last modified: March 23, 2019

---

# Since last update plugin is removing http/https inside admin area

 *  [echezuria](https://wordpress.org/support/users/echezuria/)
 * (@echezuria)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/since-last-update-plugin-is-removing-http-https-inside-admin-area/)
 * Hi guys,
 * I’m writing you because since last update the plugin is removing http/https from
   any link inside the admin area. Even in the settings or in the post edit view.
   This was not happening before.
 * Please could you fix this issue?

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

 *  [SS](https://wordpress.org/support/users/sidupandyes/)
 * (@sidupandyes)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/since-last-update-plugin-is-removing-http-https-inside-admin-area/#post-11348544)
 * Hey Guys,
 * I second [@echezuria](https://wordpress.org/support/users/echezuria/) opinion
 * This is breaking woo-commerce’s emails ( broken header image )
 *  [geirarnesen](https://wordpress.org/support/users/geirarnesen/)
 * (@geirarnesen)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/since-last-update-plugin-is-removing-http-https-inside-admin-area/#post-11350404)
 * I needed to disable the plugin as the http/https plugin caused functionality 
   for uploading files, which used file_get_contents with the url as input to fail
   `
   file_get_contents(//....)`
 * The file_get_contents function accept a url as input, but not the `//`convention
 *  [akamp](https://wordpress.org/support/users/akamp/)
 * (@akamp)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/since-last-update-plugin-is-removing-http-https-inside-admin-area/#post-11358394)
 * Latest version of the plugin also breaks Really Simple SSL plugin:
 * File really-simple-ssl/class-front-end.php
 *     ```
       r162     $script .= 'if (document.location.protocol != "https:") {';
       r163      $script .= 'document.location = document.URL.replace(/^http:/i, "https:");';
       ```
   
 * It replaces out the protocol to check against, so site is looping. This is because
   the JS is embedded in the response/buffer which is processed in mainPath().
 * Fixed by renaming the plugin directory of http-https-remover – or modifying http-
   https-remover.php by adding (after line 137) `return $buffer;` before detecting
   content_type.
    (Latter fix will bypass the replacements intended for this plugin,
   but everything is working again. Don’t forget to flush caches (like page_enhanced)
   otherwise the ‘loopy’ response will still be returned).
 * And hope next update will fix this issue…
    -  This reply was modified 7 years, 2 months ago by [akamp](https://wordpress.org/support/users/akamp/).
    -  This reply was modified 7 years, 2 months ago by [akamp](https://wordpress.org/support/users/akamp/).
 *  [Pigo3934blog](https://wordpress.org/support/users/pigo3934blog/)
 * (@pigo3934blog)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/since-last-update-plugin-is-removing-http-https-inside-admin-area/#post-11385873)
 * This is happening to me too.
 * I now get 404 Errors when clicking external URL links.
 * =====
 * Is there a way to get certain pages to be exclude from the plugin ?
    -  This reply was modified 7 years, 1 month ago by [Pigo3934blog](https://wordpress.org/support/users/pigo3934blog/).
    -  This reply was modified 7 years, 1 month ago by [Pigo3934blog](https://wordpress.org/support/users/pigo3934blog/).
 *  [Pigo3934blog](https://wordpress.org/support/users/pigo3934blog/)
 * (@pigo3934blog)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/since-last-update-plugin-is-removing-http-https-inside-admin-area/#post-11397804)
 * Just discovered that it is removing the ” https:// ” from newsletter image HTML
   URL’s so that when they go out, all the images are missing in the emails.
 * Here is what the image HTML looks like in my newsletter editor…
 * `<img style="max-width: 600px;" title="" src="//mywebsite.com/wp-content/uploads/
   2019/03/company_logo_4.jpg" alt="" width="340" height="150" border="0" />`
 * ==================
 * I will try Akamp’s solution …
 * > ” Fixed by renaming the plugin directory of http-https-remover – or modifying
   > http-https-remover.php by adding (after line 137) return $buffer; before detecting
   > content_type. “
 * I will let you know if it works.
 * ==================
 * **QUESTION: **
 * Did this issue occur in version 2.0 or 2.1 ?
 * **AND…**
 * is there a reason that should I NOT go back to version 1.5.3 ?
 * ==================
 * Love the plugin, but had to dis-able it for now.
 * When might this be rectified ?
 * ==
    -  This reply was modified 7 years, 1 month ago by [Pigo3934blog](https://wordpress.org/support/users/pigo3934blog/).
    -  This reply was modified 7 years, 1 month ago by [Pigo3934blog](https://wordpress.org/support/users/pigo3934blog/).
    -  This reply was modified 7 years, 1 month ago by [Pigo3934blog](https://wordpress.org/support/users/pigo3934blog/).
    -  This reply was modified 7 years, 1 month ago by [Pigo3934blog](https://wordpress.org/support/users/pigo3934blog/).
    -  This reply was modified 7 years, 1 month ago by [Pigo3934blog](https://wordpress.org/support/users/pigo3934blog/).
 *  [Pigo3934blog](https://wordpress.org/support/users/pigo3934blog/)
 * (@pigo3934blog)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/since-last-update-plugin-is-removing-http-https-inside-admin-area/#post-11400012)
 * [@akamp](https://wordpress.org/support/users/akamp/)
 * Thanks for the fix at.
 * [https://wordpress.org/support/topic/since-last-update-plugin-is-removing-http-https-inside-admin-area/#post-11358394](https://wordpress.org/support/topic/since-last-update-plugin-is-removing-http-https-inside-admin-area/#post-11358394)
 * —————
 * [@condacore](https://wordpress.org/support/users/condacore/)
 * When might this fix be added to the plugin ?
    -  This reply was modified 7 years, 1 month ago by [Pigo3934blog](https://wordpress.org/support/users/pigo3934blog/).
 *  [Pigo3934blog](https://wordpress.org/support/users/pigo3934blog/)
 * (@pigo3934blog)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/since-last-update-plugin-is-removing-http-https-inside-admin-area/#post-11400043)
 * [@akamp](https://wordpress.org/support/users/akamp/)
 * [@condacore](https://wordpress.org/support/users/condacore/)
 * Does adding this fix allow “mixed content” to be removed, just as the plugin 
   is intended to do ?
 * Or does this fix void the plugin’s intended function ?
 *  [akamp](https://wordpress.org/support/users/akamp/)
 * (@akamp)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/since-last-update-plugin-is-removing-http-https-inside-admin-area/#post-11401629)
 * [@pigo3934blog](https://wordpress.org/support/users/pigo3934blog/) Second answer
   is correct:
 * > Latter fix will bypass the replacements intended for this plugin, but everything
   > is working again
 * And hopefully next version will restore original functionality.
 * My advice:
    Fix every link/dependency to HTTPS if possible. Then, this plugin
   isn’t needed anymore.
 * Version 2.1 is totally rewrite than 2.0:
    2.0 replaces urls starting ‘http(s)://’
   within defined attributes (href/src/srcset/action) within defined tags (script,
   link,base,img,a,…) using regex 2.1 replaces all parts containing ‘http(s):’ in
   HTML content (enqueued headers are checked for sent content-type). If 2 more 
   slashes were added to the check and replacement – like all previous versions –
   my issue wouldn’t exists.
 * Compared to 1.5.3:
    Predefined replacements (like in 2.0) are converted into 
   a single one which conflicts in my situation due to loosely regex.
 * My opinion, 2.0 looks more reliable and much cleaner, but maybe not flexible 
   enough to cover all the predicted patterns. The size of 2.1 is also more than
   doubled, but that’s mainly due to embedding the ‘Ultimate Social Media plugin’
   notice things.
 *  Thread Starter [echezuria](https://wordpress.org/support/users/echezuria/)
 * (@echezuria)
 * [7 years ago](https://wordpress.org/support/topic/since-last-update-plugin-is-removing-http-https-inside-admin-area/#post-11501460)
 * I just notice that this problem also breaks Disqus comments system.
 * Is there a fix for this issue?
 *  [makfruit](https://wordpress.org/support/users/makfruit/)
 * (@makfruit)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/since-last-update-plugin-is-removing-http-https-inside-admin-area/#post-11586831)
 * Hey everyone,
 * Matt from Ecwid here. This started affecting the Ecwid plugin, too. The HTTP(
   s) remover plugin seems to remove the schema part (‘http’/’https’) from all urls,
   no matter where it finds them. In our case, it has changed the JS codes, which
   doesn’t seem right to me: it can break regular expressions and corrupt scripts.
   That must be causing a lot of troubles in many plugins, if I understand it right.
 * [@condacore](https://wordpress.org/support/users/condacore/), is my assumption
   correct that one of the latest updates makes the HTTP(s) remover plugin adjust
   URLs at every place it finds them? (i.e. not only in the assets like style, img,
   script etc) . I believe that’s not a good idea to change scripts as you never
   know what logic you can break there.
 * Would you consider changing that?
 * Thanks,
    -  This reply was modified 6 years, 12 months ago by [makfruit](https://wordpress.org/support/users/makfruit/).
 *  [abelanger](https://wordpress.org/support/users/abelanger/)
 * (@abelanger)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/since-last-update-plugin-is-removing-http-https-inside-admin-area/#post-11594057)
 * Having same problem – installed brand new version of this plugin – takes all 
   links to src=”// …” and if a site doesn’t have https:// and you click on link–
   with the destination of http:// … won’t load and you get 404 error – any help
   for “non-coder” ???
 *  [bodzio16](https://wordpress.org/support/users/bodzio16/)
 * (@bodzio16)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/since-last-update-plugin-is-removing-http-https-inside-admin-area/#post-11601553)
 * same here… Thanks for fixing it in advance!

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

The topic ‘Since last update plugin is removing http/https inside admin area’ is
closed to new replies.

 * ![](https://ps.w.org/http-https-remover/assets/icon-256x256.jpg?rev=1515967)
 * [SSL Mixed Content Fix](https://wordpress.org/plugins/http-https-remover/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/http-https-remover/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/http-https-remover/)
 * [Active Topics](https://wordpress.org/support/plugin/http-https-remover/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/http-https-remover/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/http-https-remover/reviews/)

## Tags

 * [admin](https://wordpress.org/support/topic-tag/admin/)
 * [edit-post](https://wordpress.org/support/topic-tag/edit-post/)
 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [settings](https://wordpress.org/support/topic-tag/settings/)

 * 12 replies
 * 8 participants
 * Last reply from: [bodzio16](https://wordpress.org/support/users/bodzio16/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/since-last-update-plugin-is-removing-http-https-inside-admin-area/#post-11601553)
 * Status: not resolved