Title: http to https, cache problems
Last modified: February 12, 2017

---

# http to https, cache problems

 *  [viktort8888](https://wordpress.org/support/users/viktort8888/)
 * (@viktort8888)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/http-to-https-cache-problems/)
 * Hello!
 * I’ve got the problems after moving my web-page to https.
    The issue is that certain
   pages (single, pages) are being shown without css. Once I purged the cache, everything
   became fine. But several days after the problem appeared once again.
 * Should I turn on/off some specific settings of the W3 total cache plugin in order
   to fix the problem with CSS style?
 * Thank you a lot in advance!

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

 *  [benoitroubert](https://wordpress.org/support/users/benoitroubert/)
 * (@benoitroubert)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/http-to-https-cache-problems/#post-8899417)
 * Maybe I will be able to help you.
 * W3 Total Cache write all its instructions at the beginning of .htaccess file.
 * We had also this kind of problem because our own instructions in .htaccess for
   the http:// ➜ https:// redirection appeared after W3 total Cache job.
 * So pages were constructed with http:// links if the case you asked the page in
   http:// and not [https://](https://wordpress.org/support/topic/http-to-https-cache-problems/?output_format=md);
   and only after, was switching to [https://](https://wordpress.org/support/topic/http-to-https-cache-problems/?output_format=md).
 * So go see your .htaccess file and put this code below at the beginning of your.
   htaccess file:
 * #######################################################
    # INFOMANIAK ########################################################
   REDIRECT HTTP TO HTTPS TO AVOID DUPLICATE CONTENT # #######################################################
 * RewriteEngine on
    RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule (.*)
   [https://www.site.com/$1](https://www.site.com/$1) [R=301,L]
 * ######################################################
 * Hope it will work for you.
 *  Thread Starter [viktort8888](https://wordpress.org/support/users/viktort8888/)
 * (@viktort8888)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/http-to-https-cache-problems/#post-8900330)
 * Thanks a lot!
    It is really helpful, now everything works fine!!

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

The topic ‘http to https, cache problems’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [viktort8888](https://wordpress.org/support/users/viktort8888/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/http-to-https-cache-problems/#post-8900330)
 * Status: not resolved