Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Force Https On For Cs Cart Version 2.0.12 Rate Topic   - - - - -

 

Posted 10 November 2016 - 03:42 PM #1

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.....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...

<meta http-equiv="Refresh" content="0;URL=http://www.website.co.uk/" />

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



 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4261 posts

Posted 10 November 2016 - 09:07 PM #2

http://kb.cs-cart.co...tps-whole-store

 

 

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

John


Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 

Posted 11 November 2016 - 09:09 AM #3

Many thanks John!



 

Posted 11 November 2016 - 09:34 AM #4

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



 

Posted 11 November 2016 - 09:37 AM #5

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]


 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4261 posts

Posted 11 November 2016 - 03:00 PM #6

 

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


Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2