Title: HTTPS Injected into HTTP site?
Last modified: July 20, 2020

---

# HTTPS Injected into HTTP site?

 *  Resolved [ergoarchitecture](https://wordpress.org/support/users/ergoarchitecture/)
 * (@ergoarchitecture)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/https-injected-into-http-site-2/)
 * We have a
 * Our WordPress site uses Cache Enabler, and suddenly it seems to be randomly changing
   some references to our site to HTTPS causing those resources not to be found.
   The really odd thing is that this seems to be an intermittent problem, and the
   pages work after making edits, then seem to break intermittently and sometimes
   even begin to work again with no edits to the site or plugin updates.
 * For example, in [http://ergoarchitecture.com/contemporary-home-design-san-diego/](http://ergoarchitecture.com/contemporary-home-design-san-diego/)
 * <script async data-noptimize=”1″ src=’[https://ergoarchitecture.com/wp-content/plugins/autoptimize/classes/external/js/lazysizes.min.js?ao_version=2.7.3′></script&gt](https://ergoarchitecture.com/wp-content/plugins/autoptimize/classes/external/js/lazysizes.min.js?ao_version=2.7.3′></script&gt);
   
   <!– Cache Enabler by KeyCDN @ 10.07.2020 04:19:31 (html gzip) –>
 * Is there any way to disable whatever is changing our http calls to https?
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhttps-injected-into-http-site-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Anonymous User 16850768
 * (@anonymized-16850768)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/https-injected-into-http-site-2/#post-13251954)
 * It’s possible that your page(s) were accessed over HTTPS (even though there is
   not a valid certificate) and that resulted in the page(s) being cached with that
   scheme.
 * We’ll be releasing an updated version in a couple weeks (1.4.0) that will support
   scheme based caching to avoid this type of issue.
 *  Thread Starter [ergoarchitecture](https://wordpress.org/support/users/ergoarchitecture/)
 * (@ergoarchitecture)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/https-injected-into-http-site-2/#post-13252318)
 * Hi Corey,
 * I think you are correct. User Thomas on the forum figured this out and helped
   me with a temporary fix:
 * > Try to add this to beginning of .htaccess
   >    <IfModule mod_rewrite.c> RewriteEngine
   > On RewriteBase / RewriteCond %{HTTPS} on RewriteRule ^(.*)$ [http://%](http://%){
   > HTTP_HOST}%{REQUEST_URI} [R=301,L] </IfModule>   This should check if https
   > is on, and if so, sends the request to non-https = http.
 * This seemed to fix it as we have been spot-checking and the problem has not occurred
   again since we changed our .htaccess file.
 * I look forward to the update.
 * Steve
    -  This reply was modified 5 years, 9 months ago by [ergoarchitecture](https://wordpress.org/support/users/ergoarchitecture/).

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

The topic ‘HTTPS Injected into HTTP site?’ is closed to new replies.

 * ![](https://ps.w.org/cache-enabler/assets/icon.svg?rev=2442383)
 * [Cache Enabler](https://wordpress.org/plugins/cache-enabler/)
 * [Support Threads](https://wordpress.org/support/plugin/cache-enabler/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-enabler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-enabler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-enabler/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [ergoarchitecture](https://wordpress.org/support/users/ergoarchitecture/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/https-injected-into-http-site-2/#post-13252318)
 * Status: resolved