Http To Https Redirect Whole Site Be Aware

The KB article on redirecting whole store states

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



[color=#1B8D01]RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.your_domain.com/$1 [R,L,NE]
[/color]



[color=#1B8D01]which is INCORRECT, if you are changing to https permanently[/color]



[color=#1B8D01]The code above sets the http resonse for serach engines to a 302 (temp move) and all link juice is lost from previous links as search engines interpret the rewrites as 302 because 301 is not specified.[/color]

[color=#1B8D01]to keep your link and seo juice you MUST put 301 in the code as below[/color]



[color=#1B8D01]RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.your_domain.com/$1 [R=301,L,NE]
[/color]



confirmed by CS and they are going to change the KB article

[color=#1B8D01]John[/color]

What I'm using is a bit more generic and doesn't require anything other than a copy/paste (fewer errors) is:


RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R=301,L,NE]

What I'm using is a bit more generic and doesn't require anything other than a copy/paste (fewer errors) is:

RewriteCond %{HTTPS} !=on
        RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R=301,L,NE]

Is this still required for verision 4.3.6, the CS-Cart knowledge base speaks nothing of the in 4.3.6?

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

Your Guidance would be greatly appreciated..........

Is this still required for verision 4.3.6, the CS-Cart knowledge base speaks nothing of the in 4.3.6?

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

Your Guidance would be greatly appreciated..........

There is no need to add any rules to the .htaccess file. You can see the instructions in the 4.3.x tab of the KB article.