[CubeCart] Can't access https pages
-
- Posts: 12
- Joined: Mon Sep 14, 2009 8:44 am
[CubeCart] Can't access https pages
Thanks in advance for your help.
Felix.
Re: [CubeCart] Can't access https pages
-
- Posts: 12
- Joined: Mon Sep 14, 2009 8:44 am
Re: [CubeCart] Can't access https pages
To reproduce the problem just click on "View Cart" on the left side menu from any page and instead of going to cart you will be redirected to the main page.
Re: [CubeCart] Can't access https pages
-
- Posts: 12
- Joined: Mon Sep 14, 2009 8:44 am
Re: [CubeCart] Can't access https pages
Thanks,
Felix.
-
- Posts: 12
- Joined: Mon Sep 14, 2009 8:44 am
Re: [CubeCart] Can't access https pages
I paid attention that all my http URLs are generated as http://eldoradogems.com, but my SSL certificate is for www.eldoradogems.com
May it be a reason why I can't access https URLs?
Actually, I want to work with www.eldoradogems.com only and before installing Magic SEO I had redirection to www.eldoradogems.com in .htaccess file, but it was overwritten.
Thank you for your help.
Felix.
Re: [CubeCart] Can't access https pages
It was caused by improper usage of a $_SERVER['REQUEST_URI'] reserved variable in CubeCart. Changing following line in includes/sslSwitch.inc.php file will help:
Code: Select all
$url_elements = parse_url(html_entity_decode($_SERVER['REQUEST_URI']));
to
Code: Select all
$url_elements = parse_url(html_entity_decode($_SERVER['SCRIPT_NAME'].(!empty($_SERVER['QUERY_STRING']) ? '?'.$_SERVER['QUERY_STRING'] : '')));
-
- Posts: 12
- Joined: Mon Sep 14, 2009 8:44 am
Re: [CubeCart] Can't access https pages
Everything is working fine.