Woocommerce cart page is not ssl secure

(Lpdollard) #1

My entire site except the cart page is ssl secure, i think i’ve got the htaccess file set up wrong, could someone confirm?

# Begin GzipofBreezeWPCache
<IfModule mod_deflate.c>
AddType x-font/woff .woff
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf
# End GzipofBreezeWPCache
#Expires headers configuration added by BREEZE WP CACHE plugin
<IfModule mod_expires.c>
   ExpiresActive On
   ExpiresDefault A2592000
   ExpiresByType application/javascript "access plus 7 days"
   ExpiresByType text/javascript "access plus 7 days"
   ExpiresByType text/css "access plus 7 days"
   ExpiresByType image/jpeg "access plus 7 days"
   ExpiresByType image/png "access plus 7 days"
   ExpiresByType image/gif "access plus 7 days"
   ExpiresByType image/ico "access plus 7 days"
   ExpiresByType image/x-icon "access plus 7 days"
   ExpiresByType image/svg+xml "access plus 7 days"
   ExpiresByType image/bmp "access plus 7 days"
#End of expires headers configuration
# 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]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^site.com [NC]
RewriteRule ^(.*)$ http://www.site.com/$1 [L,R=301,NC]
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
# END WordPress

if it is correct and there is no mixed content on the cart page, anyone have an idea why its not secure.

(Sherjeel rafat) #2

Hi there,

Thanks lot for writing to us. This is S.Rafat from Cloudways Customer Success.

This is to inform you that your htaccess seems to be correctly setup, but as per your indication if your cart is not getting the SSL encryption. It would be recommended to remove the rule

RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

That is applied at the end of your file and apply it right at the top of the htaccess. Once done please restart the services from the console. ( From the console, > server management > manage services > purge varnish and restart apache, memcached, nginx, and mysql ).

If there is still any issue . Please contact our 24/7 available support on Live Chat that is always there to assist you.