Title: Exceptions to http fixer
Last modified: August 31, 2016

---

# Exceptions to http fixer

 *  Resolved [Menashay](https://wordpress.org/support/users/menashay/)
 * (@menashay)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/exceptions-to-http-fixer/)
 * Hi There,
    Is it possible to add exceptions to the http fixer so that a specific
   http will remain http instead of changing it to https? I am aware the browser
   will give errors but I do have a situation where I need one http link to remain
   http instead of changing it to https.
 * [https://wordpress.org/plugins/really-simple-ssl/](https://wordpress.org/plugins/really-simple-ssl/)

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

 *  Thread Starter [Menashay](https://wordpress.org/support/users/menashay/)
 * (@menashay)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/exceptions-to-http-fixer/#post-7166050)
 * I have already attempted the following code (which I put in functions.php of 
   my child theme) but the http was still changed to https –
    function my_custom_http_urls(
   $arr) { global $post; if ($post->ID = 123) { //unset($arr[“src=’[http://”%5D](http://”%5D));//
   or, if double quotes were used: unset($arr[‘src=”[http://’%5D](http://’%5D));}
   return $arr; } add_filter(“rlrsssl_replace_url_args”,”my_custom_http_urls”);
 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/exceptions-to-http-fixer/#post-7166057)
 * I think it should possible with the rsssl_fixer_output filter:
 *     ```
       function exclude_http_url($html) {
         $html = str_replace("search_url", "replace_url", $html);
         return $html;
       }
       add_filter("rsssl_fixer_output","exclude_http_url");
       ```
   
 * Where you can replace the changed url back to http.
 *  Thread Starter [Menashay](https://wordpress.org/support/users/menashay/)
 * (@menashay)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/exceptions-to-http-fixer/#post-7166112)
 * Tried that code, did not work either.
 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/exceptions-to-http-fixer/#post-7166158)
 * Hi,
 * I’ve tested the code, it does what it’s supposed to do, but maybe it doesn’t 
   solve your problem?
 * On my test setup the url was replaced back to http, as expected.
 * You can check in your console what happens exactly.

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

The topic ‘Exceptions to http fixer’ is closed to new replies.

 * ![](https://ps.w.org/really-simple-ssl/assets/icon-256x256.png?rev=2839720)
 * [Really Simple Security - Simple and Performant Security (formerly Really Simple SSL)](https://wordpress.org/plugins/really-simple-ssl/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/really-simple-ssl/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/really-simple-ssl/)
 * [Active Topics](https://wordpress.org/support/plugin/really-simple-ssl/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/really-simple-ssl/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/really-simple-ssl/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/exceptions-to-http-fixer/#post-7166158)
 * Status: resolved