Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello dankobler,
    in your WordPress settings, do you have the https url added under “site url” and “home url”?

    Thread Starter Dan Kobler

    (@dankobler)

    Yes. I do.

    Thanks. I’m guessing you have checked the option “Allow SSL (secure HTTPS pages) to be cached” on “Performance setup” page?

    What method are you using to redirect http to https? Did you add some code to your htaccess?

    Thread Starter Dan Kobler

    (@dankobler)

    I had the “Allow SSL…” option checked, but unchecked it after I started seeing issues. I do have some code in my htaccess to redirect from http to https. I’ve included the entire file contents below. Thank you so much for your help.

    #WFIPBLOCKS - Do not remove this line. Disable Web Caching in Wordfence to remove this data.
    Order Deny,Allow
    #Do not remove this line. Disable Web Caching in Wordfence to remove this data - WFIPBLOCKS
    #WFCACHECODE - Do not remove this line. Disable Web Caching in Wordfence to remove this data.
    <IfModule mod_deflate.c>
    	AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
    	<IfModule mod_headers.c>
    		Header append Vary User-Agent env=!dont-vary
    	</IfModule>
    	<IfModule mod_mime.c>
    		AddOutputFilter DEFLATE js css htm html xml
    	</IfModule>
    </IfModule>
    <IfModule mod_mime.c>
    	AddType text/html .html_gzip
    	AddEncoding gzip .html_gzip
    	AddType text/xml .xml_gzip
    	AddEncoding gzip .xml_gzip
    </IfModule>
    <IfModule mod_setenvif.c>
    	SetEnvIfNoCase Request_URI \.html_gzip$ no-gzip
    	SetEnvIfNoCase Request_URI \.xml_gzip$ no-gzip
    </IfModule>
    <IfModule mod_headers.c>
    	Header set Vary "Accept-Encoding, Cookie"
    </IfModule>
    <IfModule mod_rewrite.c>
    	#Prevents garbled chars in cached files if there is no default charset.
    	AddDefaultCharset utf-8
    
    	#Cache rules:
    	RewriteEngine On
    	RewriteBase /
    	RewriteCond %{HTTPS} on
    	RewriteRule .* - [E=WRDFNC_HTTPS:_https]
    	RewriteCond %{HTTP:Accept-Encoding} gzip
    	RewriteRule .* - [E=WRDFNC_ENC:_gzip]
    	RewriteCond %{REQUEST_METHOD} !=POST
    	RewriteCond %{HTTPS} off
    	RewriteCond %{QUERY_STRING} ^(?:\d+=\d+)?$
    	RewriteCond %{REQUEST_URI} (?:\/|\.html)$ [NC]
    
    	RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|wf_logout|wordpress_logged_in|wptouch_switch_toggle|wpmp_switcher) [NC]
    
    	RewriteCond %{REQUEST_URI} \/*([^\/]*)\/*([^\/]*)\/*([^\/]*)\/*([^\/]*)\/*([^\/]*)(.*)$
    	RewriteCond "%{DOCUMENT_ROOT}/wp-content/wfcache/%{HTTP_HOST}_%1/%2~%3~%4~%5~%6_wfcache%{ENV:WRDFNC_HTTPS}.html%{ENV:WRDFNC_ENC}" -f
    	RewriteRule \/*([^\/]*)\/*([^\/]*)\/*([^\/]*)\/*([^\/]*)\/*([^\/]*)(.*)$ "/wp-content/wfcache/%{HTTP_HOST}_$1/$2~$3~$4~$5~$6_wfcache%{ENV:WRDFNC_HTTPS}.html%{ENV:WRDFNC_ENC}" [L]
    </IfModule>
    #Do not remove this line. Disable Web caching in Wordfence to remove this data - WFCACHECODE
    <IfModule mod_fcgid.c>
            <FilesMatch "\.php$">
                    AddHandler fcgid-script .php
                    FcgidWrapper /home/kaaboo/www/www/.ht-fcgi-php-wrapper .php
            </FilesMatch>
    </IfModule>
    # BEGIN 301 REDIRECTS
    redirect 301 /vip-experience https://www.kaaboodelmar.com/the-experience/amplify/
    redirect 301 /the-experience/vip https://www.kaaboodelmar.com/the-experience/amplify/
    redirect 301 /charity https://www.kaaboodelmar.com/info/charity/
    redirect 301 /lineup/430-jack-johnson https://www.kaaboodelmar.com/bands/
    redirect 301 /lineup/440-the-avett-brothers https://www.kaaboodelmar.com/bands/
    redirect 301 /lineup/431-goo-goo-dolls https://www.kaaboodelmar.com/bands/
    redirect 301 /lineup/435-jason-isbell https://www.kaaboodelmar.com/bands/
    redirect 301 /lineup/434-gavin-degraw https://www.kaaboodelmar.com/bands/
    redirect 301 /lineup/432-andrew-mcmahon-in-the-wilderness https://www.kaaboodelmar.com/bands/
    redirect 301 /lineup/441-the-green https://www.kaaboodelmar.com/bands/
    redirect 301 /lineup/436-janeane-garofalo https://kaaboodelmar.com/comedians/janeane-garofalo/
    redirect 301 /lineup/438-rachel-bloom https://kaaboodelmar.com/comedians/rachel-bloom/
    redirect 301 /lineup/437-many-more-acts-to-be-announced https://www.kaaboodelmar.com/lineup/
    redirect 301 /lineup/439-caratoes https://www.kaaboodelmar.com/artists/caratoes/
    redirect 301 /lineup/429-many-more-inspiring-artists-to-be-announced https://www.kaaboodelmar.com/artists/
    redirect 301 /lineup/433-dozens-more-acts-to-be-announced https://www.kaaboodelmar.com/lineup/
    redirect 301 /travel-stay/tinyurl.com/dmrkaboo https://www.kaaboodelmar.com/travel-stay/
    redirect 301 /contact/art https://www.kaaboodelmar.com/contact/visual-art/
    
    redirect 301 /wp-content/wfcache/www.kaaboodelmar.com_passes/~~~~_wfcache.html_gzip https://www.kaaboodelmar.com/passes/
    
    # END 301 REDIRECTS
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.kaaboodelmar.com/$1 [R,L]
    </IfModule>
    
    # TEMPORARY FORCE HTTP
    # RewriteEngine On
    # RewriteCond %{HTTPS} on
    # RewriteRule ^(.*)$ https://www.kaaboodelmar.com/$1 [R=301,L]
    
    # AuthType Basic
    # AuthUserFile /home/kaaboo/www/www/.htpasswd
    # AuthName Limited!
    # Require valid-user
    
    # Wordfence WAF
    <IfModule mod_suphp.c>
    	suPHP_ConfigPath '/home/kaaboo/www/www'
    </IfModule>
    <Files ".user.ini">
    <IfModule mod_authz_core.c>
    	Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    	Order deny,allow
    	Deny from all
    </IfModule>
    </Files>
    
    # END Wordfence WAF
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Non-SSL links redirecting to cached files’ is closed to new replies.