move cart to secure site

good afternoon, we have installed the cart in ""normal"" site, we are now setting up a secure site.

How do I move the cart from ""normal"" to ""secure"", if possible ?

To force a connection over SSL you can add a .htaccess rule like the following:

Redirect to HTTPS

RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]

Or

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

Or

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

LiteCart will return links relative to the domain port, path and protocol.

thanks, as soon as cert is installed I'll have go

htaccess edit worked ok, the site came up as a https alright, however it also blocked the access to the admin --
could not log in - once I removed the htaccess edit of ""redirect to https"" admin was available again .....

Send an e-mail to support (a) litecart.net with FTP details and we will see if there is any trouble with the platform.

send ftp detail to email as suggested.

thanks, much appreciated

See the subfolder in the code below

# Force HTTPS - Remember: Clear links cache
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/aoifapublications/$1 [R=301,L]

thanks so much, that did the trick !

Update:
sorry, trouble again -- admin login with error ""index.php not found on this server"" .

removed the https rewrite from htaccess and all works again.

I think I will have to re-install cart on secure server, thanks for all your help

Este tópico foi fechado devido à longa inatividade. Não é possível postar nele.
Veja o código no GitHub