WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
half the pages are https and the other half is http (3 posts)

  1. workky
    Member
    Posted 1 year ago #

    Can anyone tell me what the RewriteCond HTTPS=on does? im having some issues with some pages coming up https, and most http. I have https on my server, but I don't use it at all. I just got incase I needed it in the future. My website is http under settings/general
    my backend is https, probably don't need it, but I have it that way.

    # BEGIN W3TC Page Cache core
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} =on

    http://wordpress.org/plugins/w3-total-cache/

  2. workky
    Member
    Posted 1 year ago #

    Anyone know why it would do this?

  3. workky
    Member
    Posted 1 year ago #

    # END W3TC Browser Cache
    # BEGIN W3TC Page Cache core
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} =on
    RewriteRule .* - [E=W3TC_SSL:_ssl]
    RewriteCond %{SERVER_PORT} =443
    RewriteRule .* - [E=W3TC_SSL:_ssl]
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteRule .* - [E=W3TC_ENC:_gzip]
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} =""
    RewriteCond %{REQUEST_URI} \/$
    RewriteCond %{HTTP_COOKIE} !(comment_author|wp-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
    RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" -F
    RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" [L]
    </IfModule>
    # END W3TC Page Cache core

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic