[ Zen Cart ] SSL Pages unreachable ...

Magic SEO URLs for Zen Cart.
testuser
Posts: 11
Joined: Fri Jun 27, 2008 5:15 pm

[ Zen Cart ] SSL Pages unreachable ...

Postby testuser » Fri Jun 27, 2008 5:18 pm

Hello,

Using Zen Cart SEO mod and can't seem to get to any secure pages on the catalog side.

FireFox gives the error:
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

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

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby inveo » Fri Jun 27, 2008 6:15 pm

This usually happen when web server is configured incorrectly (SERVER_PORT variable is wrong).

testuser
Posts: 11
Joined: Fri Jun 27, 2008 5:15 pm

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby testuser » Sat Jun 28, 2008 10:54 am

Can you go into any detail on how Magic uses that? It works fine without the mod, but when enabled the error occurs.

Any ideas on how to solve it?

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

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby inveo » Sat Jun 28, 2008 11:20 am

What is your Zen Cart URL?

I need to see phpinfo() output or at least some HTTP headers in order to provide appropriate work around.

testuser
Posts: 11
Joined: Fri Jun 27, 2008 5:15 pm

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby testuser » Sat Jun 28, 2008 12:13 pm

http://xxxxx.com/jmodzen.php
Last edited by testuser on Mon Jun 30, 2008 6:07 am, edited 1 time in total.

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

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby inveo » Sat Jun 28, 2008 5:16 pm

Issue you are experiencing is caused by incorrect value of HTTP_HOST variable when HTTPS is used. Please place following code before installation line:

Code: Select all

$_SERVER['HTTP_HOST'] = substr($_SERVER['HTTP_HOST'], 0, strpos($_SERVER['HTTP_HOST'], ':') - strlen($_SERVER['HTTP_HOST']));

testuser
Posts: 11
Joined: Fri Jun 27, 2008 5:15 pm

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby testuser » Sun Jun 29, 2008 9:20 am

Ok that got the secure pages functioning properly, but now the non-secure pages throw the same error as before.

What's causing that?

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

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby inveo » Sun Jun 29, 2008 9:50 am

Then use this code (I am not sure it will work - phpinfo is no longer available):

Code: Select all

if($_SERVER['HTTPS'] == 'on') $_SERVER['HTTP_HOST'] = substr($_SERVER['HTTP_HOST'], 0, strpos($_SERVER['HTTP_HOST'], ':') - strlen($_SERVER['HTTP_HOST']));

testuser
Posts: 11
Joined: Fri Jun 27, 2008 5:15 pm

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby testuser » Mon Jun 30, 2008 6:06 am

Problem solved.

Is this a host configuration error that causes this to happen, or a combination of the script and the server settings?

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

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby inveo » Mon Jun 30, 2008 6:12 am

It is host configuration error (HTTP_HOST variable have to match http host in URL).