How to exclude a URL from the mixed content fixer

Sometimes it is necessary to exclude a certain URL from the mixed content fixer. For those who don’t know already: the mixed content fixer in Really Simple SSL changes all URLs from http to https, except for hyperlinks to other domains.

This can be easily accomplished with a filter, which you can add to your functions.php. It will execute after the Mixed content fixer has done its work, so you have to replace the URLs back to http, like this:

function rsssl_exclude_http_url($html) {
  $html = str_replace("", "", $html);
  return $html;
Lightweight plugin, Heavyweight Security features. Get Pro and leverage your SSL certificate for WordPress security standards.