[CubeCart] Can't access https pages

Magic SEO URLs for CubeCart.
eldoradogems
Posts: 12
Joined: Mon Sep 14, 2009 8:44 am

[CubeCart] Can't access https pages

Postby eldoradogems » Wed Sep 16, 2009 1:33 pm

I installed Magic SEO and everything works fine, all URLs were generated successfully. The only problem I have is when I click "View Cart" I'm redirecting to the main page instead of going to the "Cart" page. I suspect that the problem is that "Cart" is https page, but I don't know how to fix it. I tried to search the forum, but couldn't find the answer for this.

Thanks in advance for your help.
Felix.

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [CubeCart] Can't access https pages

Postby inveo » Wed Sep 16, 2009 1:38 pm

Please post your web site URL and steps how to reproduce the problem.

eldoradogems
Posts: 12
Joined: Mon Sep 14, 2009 8:44 am

Re: [CubeCart] Can't access https pages

Postby eldoradogems » Wed Sep 16, 2009 3:14 pm

http://eldoradogems.com
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.

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [CubeCart] Can't access https pages

Postby inveo » Thu Sep 17, 2009 12:35 pm

I was unable to reproduce this issue. I will need your FTP login details in order to find what is going wrong. PM me if you can.

eldoradogems
Posts: 12
Joined: Mon Sep 14, 2009 8:44 am

Re: [CubeCart] Can't access https pages

Postby eldoradogems » Thu Sep 17, 2009 6:08 pm

I have PM-ed you the FTP details.

Thanks,
Felix.

eldoradogems
Posts: 12
Joined: Mon Sep 14, 2009 8:44 am

Re: [CubeCart] Can't access https pages

Postby eldoradogems » Thu Sep 17, 2009 6:20 pm

I just want to add more details...
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.

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [CubeCart] Can't access https pages

Postby inveo » Sat Sep 19, 2009 2:07 pm

Solved.

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'] : '')));

eldoradogems
Posts: 12
Joined: Mon Sep 14, 2009 8:44 am

Re: [CubeCart] Can't access https pages

Postby eldoradogems » Sun Sep 20, 2009 7:33 pm

Thank you very much! Much appreciated.
Everything is working fine.