Title: Generated CSS files are insecure
Last modified: December 4, 2020

---

# Generated CSS files are insecure

 *  Resolved [cjwebdev](https://wordpress.org/support/users/cjwebdev/)
 * (@cjwebdev)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/generated-css-files-are-insecure/)
 * We are getting a ‘mixed-content’ content error on our secure site. All Litespeed
   generated CSS files are linked as insecure (http) and are blocked.
 * Both WordPress URLs are set to HTTPS. Ive run a search replace on the database
   and there are no occurrences of HTTP.
 * We also have the Really Simple SSL plugin installed with the mixed-content filter
   active. Yet still the files are linked as http.
 * The only recent change is that the site does use Cloudflare and we recently updated
   to Cloudflare Pro…
 * Any help would be really appreciated.
 * CJ

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

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/generated-css-files-are-insecure/#post-13747578)
 * Hi,
 * Could you please create a php file , with code
 *     ```
       <?php
       require( './wp-load.php' );
       echo 'WP CONTENT URL:' . content_url();
       echo '<br>';
       echo 'LSCWP URL: ' . LITESPEED_STATIC_URL;
       ```
   
 * save it at same level as your wp-config.php
 * access it by browser, and post output ?
 * Best regards,
 *  Thread Starter [cjwebdev](https://wordpress.org/support/users/cjwebdev/)
 * (@cjwebdev)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/generated-css-files-are-insecure/#post-13752254)
 * Thanks qtwrk,
 *     ```
       WP CONTENT URL:https://our.domain.com/wp-content
       LSCWP URL: http://our.domain.com/wp-content/litespeed
       ```
   
 * CJ
 *  Thread Starter [cjwebdev](https://wordpress.org/support/users/cjwebdev/)
 * (@cjwebdev)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/generated-css-files-are-insecure/#post-13752260)
 * We are running Litespeed v3.5.2 on WP v5.5.3
 * CJ
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/generated-css-files-are-insecure/#post-13752417)
 * Hi,
 * now that is interesting.
 * could you please try this script
 *     ```
       <?php
       require( './wp-load.php' );
       echo 'WP CONTENT URL:' . WP_CONTENT_URL;
       echo '<br>';
       echo 'LSCWP URL: ' . LITESPEED_STATIC_URL;
       ```
   
 * run twice , one with really simple SSL , one without it.
 * Best regards,
 *  Thread Starter [cjwebdev](https://wordpress.org/support/users/cjwebdev/)
 * (@cjwebdev)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/generated-css-files-are-insecure/#post-13752466)
 * Without RSSSL:
 *     ```
       WP CONTENT URL:https://our.domain.com/wp-content
       LSCWP URL: https://our.domain.com/wp-content/litespeed
       ```
   
 * With RSSSL:
 *     ```
       WP CONTENT URL:https://our.domain.com/wp-content
       LSCWP URL: https://our.domain.com/wp-content/litespeed
       ```
   
 * **Now everything is fine – Litespeed CSS is HTTPS. No mixed-content errors.**
 * Very strange (I bet it’s Cloudflare’s fault)
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/generated-css-files-are-insecure/#post-13752473)
 * Hi,
 * hmmmm , yeah , strange
 * from our code , that litespeed url is defined by
 * `define( 'LITESPEED_STATIC_URL', WP_CONTENT_URL . '/litespeed' ) ;`
 * so whatever scheme WP_CONTENT_URL has, it inherits.
 * but in your first test, WP URL gives https and LS URL gives http , that’s why
   I said it’s interesting
 * something altered somehwere I think
 * Best regards,
 *  Thread Starter [cjwebdev](https://wordpress.org/support/users/cjwebdev/)
 * (@cjwebdev)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/generated-css-files-are-insecure/#post-13752476)
 * Thanks for your help in any case.
 * I’ll mark this as resolved … but mysterious.

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

The topic ‘Generated CSS files are insecure’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [cjwebdev](https://wordpress.org/support/users/cjwebdev/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/generated-css-files-are-insecure/#post-13752476)
 * Status: resolved