Jump to content

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

Http To Https Redirect Whole Site Be Aware Rate Topic   - - - - -

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

Posted 14 January 2015 - 10:59 PM #1

The KB article on redirecting whole store states
http://kb.cs-cart.co...tps-whole-store

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


which is INCORRECT, if you are changing to https permanently

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.
to keep your link and seo juice you MUST put 301 in the code as below

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


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

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


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11404 posts

Posted 14 January 2015 - 11:26 PM #2

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]

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 

Posted 18 May 2016 - 03:01 AM #3

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.co...tps-whole-store

 

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


Thanks
Danny

"www.GenteelReflections.com"

"www.TylerCandleStore.com"

 
  • CS-Cart team
  • CS-Cart support team
  • Moderators
  • Join Date: 04-Apr 11
  • 3809 posts

Posted 18 May 2016 - 05:51 AM #4

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


Sincerely yours, CS-Cart Support Team

 

User guide       |  Developer documentation  |  Core API documentation