• viktort8888

    (@viktort8888)


    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)
  • 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 https:// ? https:// redirection appeared after W3 total Cache job.

    So pages were constructed with https:// links if the case you asked the page in https:// and not https://; and only after, was switching to https://.

    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 [R=301,L]

    ######################################################

    Hope it will work for you.

    Thread Starter viktort8888

    (@viktort8888)

    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.