Force Https On For Cs Cart Version 2.0.12

Hi,

I want to force https on for the entire site on an old cs cart site.

The general settings only allow https on certain areas, which are all checked: https://www.dropbox.com/s/7fu3r5puaum4y01/Screenshot%202016-11-10%2015.40.25.png?dl=0

But how do I do it site wide?

Visiting the site on https takes you to a page with just this in the source...


Doing a "Find in files" doesn't reveal anything that would do this.

http://kb.cs-cart.com/https-whole-store

Just make sure the R in the redirect is R301 so you dont lose any link juice

John

Many thanks John!

It appears that this method 302s the content, does anyone know how I change this to 301? (cs cart version 2)

Nevermind it looks like it now accepts htaccess rewrites so I've used

RewriteCond %{HTTPS} !on
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.your_domain.com/$1[R=301,L]

Nevermind it looks like it now accepts htaccess rewrites so I've used

RewriteCond %{HTTPS} !on
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.your_domain.com/$1[R=301,L]

Thats it