Title: Mixed content &#8211; http instead of https
Last modified: April 10, 2020

---

# Mixed content – http instead of https

 *  [Tom](https://wordpress.org/support/users/atomiktd/)
 * (@atomiktd)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/mixed-content-http-instead-of-https/)
 * I have a problem with the script not being loaded over https.
 * `Mixed Content: The page at 'https://domdzwieku.pl/' was loaded over HTTPS, but
   requested an insecure script 'http://domdzwieku.pl/wp-content/cache/caos-analytics/
   analytics.js'. This request has been blocked; the content must be served over
   HTTPS.`
 * How do I fix it?

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

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/mixed-content-http-instead-of-https/#post-12654379)
 * How do your URL settings look in WordPress > Settings > General?
    -  This reply was modified 6 years, 1 month ago by [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/).
 *  Thread Starter [Tom](https://wordpress.org/support/users/atomiktd/)
 * (@atomiktd)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/mixed-content-http-instead-of-https/#post-12654387)
 * Both [https://domdzwieku.pl](https://domdzwieku.pl)
 *  Thread Starter [Tom](https://wordpress.org/support/users/atomiktd/)
 * (@atomiktd)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/mixed-content-http-instead-of-https/#post-12660959)
 * Any news?
    -  This reply was modified 6 years, 1 month ago by [Tom](https://wordpress.org/support/users/atomiktd/).
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/mixed-content-http-instead-of-https/#post-12660972)
 * I just visited your site. You have issues with your SSL certificate. I’m getting
   this error: SEC_ERROR_EXPIRED_CERTIFICATE
 * Resolve this first, because this might resolve the issue and now we can’t accurately
   debug it.
 *  Thread Starter [Tom](https://wordpress.org/support/users/atomiktd/)
 * (@atomiktd)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/mixed-content-http-instead-of-https/#post-12661013)
 * This is strange because actually Kaspersky antivirus reports this problem to 
   me as well but when I view certificate it is still valid for 1 year more (10/
   04/2021). I have to check it with my ISP
 * Would you be so kind and check [https://taichi-poznan.pl](https://taichi-poznan.pl)
   as well? I don’t have this kind of problem with the certificate on that site 
   and there is the same problem with CAOS.
 * I’ve found on it, that when my setting is Analytics.js, it doesn’t happen but
   when I switch to Gtag.js it does.
 * Does it make any sense for you?
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/mixed-content-http-instead-of-https/#post-12661021)
 * Ah, that’s strange.
 * Let me see if there’s a bug in the rewrite mechanism for gtag.js.
 * I’ll keep you posted.
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/mixed-content-http-instead-of-https/#post-12661097)
 * There doesn’t seem to be a bug in there.
 * CAOS uses the function `content_url()` to generate the path to the analytics.
   js file in gtag.js.
 * Do you by any chance have WP_CONTENT_URL set in your wp-config.php? Or another
   plugin installed, that modifies your content url?
 *  Thread Starter [Tom](https://wordpress.org/support/users/atomiktd/)
 * (@atomiktd)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/mixed-content-http-instead-of-https/#post-12661488)
 * It used to be on the previously mentioned site but I removed it as the first 
   suspect.
    It’s never been on taichi-poznan.pl
 * I will try to investigate it on some less visited site later on. Maybe there 
   is another plugin that interferes.
 * Thank you for your effort. I’ll keep you informed.
 * Tom

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

The topic ‘Mixed content – http instead of https’ is closed to new replies.

 * ![](https://ps.w.org/host-analyticsjs-local/assets/icon-256x256.png?rev=3307068)
 * [CAOS | Host Google Analytics Locally](https://wordpress.org/plugins/host-analyticsjs-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-analyticsjs-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-analyticsjs-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-analyticsjs-local/reviews/)

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)

 * 8 replies
 * 2 participants
 * Last reply from: [Tom](https://wordpress.org/support/users/atomiktd/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/mixed-content-http-instead-of-https/#post-12661488)
 * Status: not a support question