I had installed certificate on the server and enabled SSL inside CS-Cart settings, but when I'm trying reach secured version (https://…) it's always redirects me to non-secure (http://…)
I also tried to set redirects inside .htaccess but this created infinite loop of calls http → https → http.
After hours of researching I have found that somewhere script calls for local redirect fn and when I disabled everything inside this function - secure version works. This is not coolest way to solve the issue so I decided to create topic here.
Issue appears only on front-end part. Admin subset works good.
CS-Cart version: 3.0.6 (can't update because of custom integrations and theming)
config.local.php
...
// Host and directory where software is installed on no-secure server
$config['http_host'] = 'www.example.co.uk';
$config['http_path'] = '';
// Host and directory where software is installed on secure server
$config['https_host'] = 'www.example.co.uk';
$config['https_path'] = '';...
After hours of researching I have found that somewhere script calls for local redirect fn and when I disabled everything inside this function - secure version works. This is not coolest way to solve the issue so I decided to create topic here.
[/quote]
jared,
post the code that you disabled. This could help to understand the issue.
I'm glad I'm not the only one with this issue. I've tried setting up SSL on my site today too and followed the instructions for version 3.0.6 as per the knowledge base article.
If I include the
RewriteCond %{SERVER_PORT} 80
in .htaccess, then the admin side has SSL enabled, however as soon as I enter
I'm glad I'm not the only one with this issue. I've tried setting up SSL on my site today too and followed the instructions for version 3.0.6 as per the knowledge base article.
If I include the
RewriteCond %{SERVER_PORT} 80
in .htaccess, then the admin side has SSL enabled, however as soon as I enter
I need to realise where exactly it calls and fix condition.
But it's breaking entire redirect functional everywhere where needed, such like merchant, login redirects, etc.
The problem is not in the ssl installation or redirect implementation server side but something wrong with recognising https and providing correct condition for that.
What might be:
Site can't recognise correct URI and then just forwarding to http_host
@johnbol - as you can see from my first post, the problem is not in implementing redirects inside .htaccess. Example of configuration posted previously.
If you want to activate secure connection for all urls, you need to only enable "Keep HTTPS connection once a secure page is visited"
not to enable Enable secure connection at checkout, Enable secure connection in the administration panel, Enable secure connection for authentication, profile and orders pages
because if you enable all those options, there is loop
If you want to activate secure connection for all urls, you need to only enable "Keep HTTPS connection once a secure page is visited"
not to enable Enable secure connection at checkout, Enable secure connection in the administration panel, Enable secure connection for authentication, profile and orders pages
because if you enable all those options, there is loop
just for your info :)
I can't login to Admin CP when SSL enabled on my VPS.