Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with navigation under SSL on shared server


vidmaster

Recommended Posts

Posted

Hello, I'm having a small problem and wondering if anyone knows a fix.

 

My shop is running at http://www.ellensgarden.com/catalog/ and the SSL url is https://host66.ipowerweb.com/~ellensga/catalog/

 

Certain pages that use SSL error when they try to load. The exact problem I'm encountering is that that username is being cut off in the SSL URL. For example: https://host66.ipowerweb.com/catalog/index.php instead of https://host66.ipowerweb.com/~ellensga/cata...talog/index.php

 

The exact places I have encountered this are the following:

 

catalog/login.php

 

After login info is submitted, page tries to redirect to /catalog/index.php instead of /~ellensga/catalog/index.php.

 

          tep_redirect(tep_href_link(FILENAME_DEFAULT));

 

Simply changing the preceding line to the following fixed it in this instance.

 

          tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'SSL'));

 

Next, the one I can't fix!

 

catalog/checkout_success.php

 

After the customer finishes with their order and gets to the success page, clicking the 'Continue' button will cause the next page load to fail with the same problem. It navigates to /catalog/checkout_success.php/action/notify/notify[] or something like that and errors out.

 

Changing the following line fixed the error for the product notifaction:

 

    tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL'));
[/code
 
to:
 
[code]
    tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL'));

 

This however did not fix the redirect to the shop front after the notifactions are checked/updated in the customer's settings after an order.

 

You can view this for yourself at:

 

http://www.ellensgarden.com/

login: [email protected]

pass: testing

 

Use COD when placing a test order.

 

If you're still reading after all that and think you can help, please let me know! Thanks in advance.

Posted

Can't edit that post. The last part is supposed to be:

 

Changing the following line fixed the error for the product notifaction:

 

 

tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));

 

to:

 

 

tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL'));

 

This however did not fix the redirect to the shop front after the notifactions are checked/updated in the customer's settings after an order.

Posted

Aieee one more thing for those who will ask, this is 2.2 MS2

 

I was using MS1 with no problem and did a clean load of MS2 and had this problem right at the start before I started hacking the code up some ;)

Posted

Yea, I fixed that part by specifying SSL in the link part as opposed to leaving it unspecified. The other problem occurs after the checkout success. When you click continue and it goes to redirect to the front page, it bombs out. Thanks for taking the time to look at it.

Posted

I took some screenshots to illustrate the problem I'm having.

 

Order goes through fine.

 

err01.jpg

 

After clicking continue, it redirects to the wrong URL for the https server. It hacks off the /~ellensga/ part. No idea whats doing it. Everything else that uses SSL works fine on the site now.

 

err02.jpg

Posted

When you setup your site with a shared ssl, both your catalog/includes/configure.php should look like this

define('HTTP_SERVER', 'http://www.ellensgarden.com/'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://host66.ipowerweb.com/~ellensga/'); // eg, https://localhost - should not be empty for productive servers

 define('ENABLE_SSL', true); // secure webserver for checkout procedure?

 

HTH

The_Bear

Posted

Thank you so much!

 

I didn't have the /~ellensga/ part in the server portion, i had it in the directory part. Thanks alot!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...