Hi ASG,
First of all you have to set your config.php to this one: (I mean the root not the admin)
<?php
// HTTP
define('HTTP_SERVER', '
https://domainname.com/');
define('HTTP_CATALOG', '
https://domainname.com/image');
// HTTPS
define('HTTPS_SERVER', '
https://domainname.com/');
define('HTTPS_CATALOG', '
https://domainname.com/image');
// DIR
define('DIR_APPLICATION', '/var/www/vhosts/domainname.com/catalog/');
define('DIR_SYSTEM', '/var/www/vhosts/domainname.com/system/');
define('DIR_DATABASE', '/var/www/vhosts/domainname.com/system/database/');
define('DIR_LANGUAGE', '/var/www/vhosts/domainname.com/catalog/language/');
define('DIR_TEMPLATE', '/var/www/vhosts/domainname.com/catalog/view/theme/');
define('DIR_CONFIG', '/var/www/vhosts/domainname.com/system/config/');
define('DIR_IMAGE', '/var/www/vhosts/domainname.com/image/');
define('DIR_CACHE', '/var/www/vhosts/domainname.com/system/cache/');
define('DIR_DOWNLOAD', '/var/www/vhosts/domainname.com/download/');
define('DIR_LOGS', '/var/www/vhosts/domainname.com/system/logs/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', '');
define('DB_USERNAME', '');
define('DB_PASSWORD', '');
define('DB_DATABASE', '');
define('DB_PREFIX', 'oc_');
?>
Next step is your htacccess:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
# If your installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Third step is to connect to your admin Opencart and :
Goto to system, settings, server and clic on "USE SSL"
If you also need to have your admin protected by ssl (it's more secure) you'll have to do this:
-1- Open admin/config.php and complete this with your domain name (with or without www)
-2- HTACCESS
At the top of your HTACCESS
AddDefaultCharset ISO-8859-1
Order Deny,Allow
Deny from all
AuthUserFile /var/www/vhosts/DOMAINNAME.COM/admin/.htpasswd
AuthName "Administration Sécurisée"
AuthType Basic
require valid-user
Satisfy Any
Next you will have to create a file called HTPASSWD
In this file you will have to create an ID and a password
-3- HTACCESS
Copy this one wherever you want in your htaccess:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
If you need more assistance PM me I will try to help
Have a nice day
YDA
I use OC 1.5.5.1 and it works very fine
PS: I forgot to tell you that you also need to activate SEO revriting URL's in sytem, settings, server