Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

Trabe
Advanced Member

United Kingdom
326 Posts

Posted - 03/14/2020 :  03:24:28  
Just reading the March newsletter about the carts disappearing.

We have had this issue for many years - how we finally got a fix for it??

What is required for the htaccess please???

Trace

Vince
Administrator

42874 Posts

Posted - 03/14/2020 :  04:58:27  
Hi Trace
This should do the trick (changing of course example.com for your own domain) ...

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule (.*) https://www.example.com/$1 [L,R=301]
</IfModule>

This covers both HTTPS and non-www. to www. but it may be that for instance you don't have the whole site on SSL in which case...

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule (.*) http://www.example.com/$1 [L,R=301]
</IfModule>

Do take a backup of the .htaccess before doing this as it can cause errors editing the .htaccess file.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Trabe
Advanced Member

United Kingdom
326 Posts

Posted - 03/14/2020 :  08:22:58  
Many many thanks Vince, lets hope this sorts it once and for all

Trace
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000