Really Simple SSL

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 to 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 was added, which also includes <style href= references to other domains than your own.

But you want to know how to fix this manually, and luckily there is a solution (this will work only if the mixed content fixer is active 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.

Rogier

Rogier

Related articles

Leave a Reply

Subscribe

Integrate with Really Simple SSL

Really Simple SSL offers a Free SSL Certificate from Let’s Encrypt. Do you want to integrate with Really Simple SSL as a hosting provider? Let us know!

Choose the answer that most closely resembles your proposed integration. Additional information can be entered below.
After sending the form. The pop-up will close automatically.