Title: HTTPS, WP Super Cache and slimstat&#039;s not working on https pages
Last modified: August 22, 2016

---

# HTTPS, WP Super Cache and slimstat's not working on https pages

 *  Resolved [bob_hardy](https://wordpress.org/support/users/bob_hardy/)
 * (@bob_hardy)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-wp-super-cache-and-slimstats-not-working-on-https-pages/)
 * Hi
    I’m using the HTTPS plugin to pick and chose pages that should be run over
   SSL. I’m also using Super Cache to cache pages so I don’t think I can use the
   server side script, right?
 * I’m having trouble figuring out why Slimstat is resulting in the following console
   error on secure pages:
    The page at ‘[https://eatprepd.com/checkout/&#8217](https://eatprepd.com/checkout/&#8217);
   was loaded over HTTPS, but displayed insecure content from ‘[http://eatprepd.com/wp-admin/admin-ajax.php&#8217](http://eatprepd.com/wp-admin/admin-ajax.php&#8217);:
   this content should also be loaded over HTTPS
 * Any thoughts?
 * [https://wordpress.org/plugins/wp-slimstat/](https://wordpress.org/plugins/wp-slimstat/)

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

 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-wp-super-cache-and-slimstats-not-working-on-https-pages/#post-5191918)
 * Hi,
 * According to the documentation, the function we use to generate the URL should
   use the appropriate protocol, if things are set correctly in your admin:
 * [http://codex.wordpress.org/Function_Reference/admin_url](http://codex.wordpress.org/Function_Reference/admin_url)
 * Apparently the HTTPS plugin you’re using is not letting other plugins know about
   the change 😉
 * Best,
    Camu
 *  Thread Starter [bob_hardy](https://wordpress.org/support/users/bob_hardy/)
 * (@bob_hardy)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-wp-super-cache-and-slimstats-not-working-on-https-pages/#post-5191939)
 * Thanks. Do you know of another way of loading specific pages over https that 
   works with slimstat?
 * Thanks
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-wp-super-cache-and-slimstats-not-working-on-https-pages/#post-5191943)
 * Any plugin that uses the right way of doing it works with Slimstat 😉
 *  Thread Starter [bob_hardy](https://wordpress.org/support/users/bob_hardy/)
 * (@bob_hardy)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-wp-super-cache-and-slimstats-not-working-on-https-pages/#post-5191945)
 * Can I ask how you would recommend loading HTTPS pages?
 * Thanks
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-wp-super-cache-and-slimstats-not-working-on-https-pages/#post-5191946)
 * This should work:
 * [http://wordpress.org/support/topic/how-can-i-force-https-on-everything?replies=3](http://wordpress.org/support/topic/how-can-i-force-https-on-everything?replies=3)
 *  Thread Starter [bob_hardy](https://wordpress.org/support/users/bob_hardy/)
 * (@bob_hardy)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-wp-super-cache-and-slimstats-not-working-on-https-pages/#post-5191947)
 * Unfortunately that didn’t fix the issue. It also caused a bunch of fonts to break
   because there’s an insecure response…
    GET [https://fonts.gstatic.com/s/lato/v8/EsvMC5un3kjyUhB9ZEPPwg.woff2](https://fonts.gstatic.com/s/lato/v8/EsvMC5un3kjyUhB9ZEPPwg.woff2)
   net::ERR_INSECURE_RESPONSE
 *  Thread Starter [bob_hardy](https://wordpress.org/support/users/bob_hardy/)
 * (@bob_hardy)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-wp-super-cache-and-slimstats-not-working-on-https-pages/#post-5191948)
 * I also tried changing
    ), admin_url(‘admin-ajax.php’) ), )
 * to:
 * ), str_replace(“https:”, “http:”, admin_url(‘admin-ajax.php’)) ), )
 * in either/both wp-slimstat.php and index.php but that didn’t fix it either…
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-wp-super-cache-and-slimstats-not-working-on-https-pages/#post-5191949)
 * Shouldn’t the str_replace be the other way around? Just to understand, your ENTIRE
   site is served over HTTPS?
 *  Thread Starter [bob_hardy](https://wordpress.org/support/users/bob_hardy/)
 * (@bob_hardy)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-wp-super-cache-and-slimstats-not-working-on-https-pages/#post-5191950)
 * So yes… I messed that up. The str_replace should have been the other way around.
   
   The str_replace function, when used properly, fixed the issue with the admin-
   ajax.php content lot being loaded over https!
 * And no, my entire site is not https secure, just the account/order pages.
 * Issue solved. Thanks for your help!
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-wp-super-cache-and-slimstats-not-working-on-https-pages/#post-5191951)
 * Great, a vote/review for Slimstat would be a nice way to say thank you 😉

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

The topic ‘HTTPS, WP Super Cache and slimstat's not working on https pages’ is closed
to new replies.

 * ![](https://ps.w.org/wp-slimstat/assets/icon.svg?rev=2832242)
 * [SlimStat Analytics](https://wordpress.org/plugins/wp-slimstat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-slimstat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-slimstat/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-slimstat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-slimstat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-slimstat/reviews/)

## Tags

 * [slimstat](https://wordpress.org/support/topic-tag/slimstat/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)
 * [super cache](https://wordpress.org/support/topic-tag/super-cache/)

 * 10 replies
 * 2 participants
 * Last reply from: [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/https-wp-super-cache-and-slimstats-not-working-on-https-pages/#post-5191951)
 * Status: resolved