Mixed content

How to replace other domains that should be on ssl

If you include external domains, that are not replaced to https by Really Simple SSL, you can fix this with a filter.

Really Simple SSL replaces all references the your own domain, and all links that are included with src=”http://www.another-domain.com”. In version 2.11, an extensive mixed content fixer will be added, which will also include <style href= references to other domains than your own.

But you want to know how to fix this now, and luckily there is a solution (this will work only if the mixed content fixer is activa AND working though).

In your functions.php, add the following function:

function my_custom_http_urls($arr) {


array_push($arr,
"http://fonts.googleapis.com",
"http://your.other.domain.com",
"http://code.jquery.com"
);

return $arr;
}

add_filter("rlrsssl_replace_url_args","my_custom_http_urls");

Now, if you look in the source of your website, these domains will also be replaced to https.

Related Articles

  • How to exclude a url from the mixed content fixer

    It sometimes 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...
  • Images not found with Photon from Jetpack

    Some websites using JetPack have Photon activated. Photon is an image acceleration and editing service, where the images are served from the WordPress cloud. In some cases, there are issues...
  • Plugin conflict force rewrite title Yoast

    * Update* This issue should be resolved in the 2.4 version. I left the Yoast check for now, but this warning will be removed in future versions. If you have...
  • Disabling ssl for one page only

    The problem: services that don’t support SSL I think the best way to go is to get your entire site on SSL. But sometimes there are services that are not...

Leave a Comment