Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

shared ssl mislinks images Rate Topic   - - - - -

 
  • convello
  • Junior Member
  • Members
  • Join Date: 02-Nov 06
  • 19 posts

Posted 04 February 2007 - 04:05 PM #1

when using shared ssl to access my site i have to enter the following prefix:

https://secure.netso...thing.com/shop/

the problem is that while inside the shopping cart under the shared ssl the site refrences the images as follows:

https://secure.netso...con_catalog.gif

as you can see they leave out the "username" for the shared ssl "hampdenclothing.com." therefore all of the images/stylesheets don't link properfly and the site looks like hell.

how can i fix this?

config.php looks like the following:

$cscart_http_host = 'www.hampdenclothing.com';
$cscart_http_dir = '/shop';

// Host and directory where cs-cart is installed on secure server
$cscart_https_host = 'secure.netsolhost.com';
$cscart_https_dir = '/hampdenclothing.com/shop';

i've tried this on two different servers now with two different hosting providers someone else has to have had this problem already.

 
  • convello
  • Junior Member
  • Members
  • Join Date: 02-Nov 06
  • 19 posts

Posted 04 February 2007 - 05:54 PM #2

someone please help

 
  • S-Combs
  • Senior Member
  • Members
  • Join Date: 09-Nov 06
  • 692 posts

Posted 05 February 2007 - 02:30 AM #3

I get page not found trying to load the secure address you posted but it might just be down at the moment.

https://secure.netsolhost.com/hampdenclothing.com/shop/


Have you tried it this way? (make sure the address is working before you try it though)

$cscart_https_host = 'secure.netsolhost.com/hampdenclothing.com/shop';
$cscart_https_dir = '';


or

$cscart_https_host = 'secure.netsolhost.com/hampdenclothing.com';
$cscart_https_dir = '/shop';


 
  • convello
  • Junior Member
  • Members
  • Join Date: 02-Nov 06
  • 19 posts

Posted 05 February 2007 - 02:48 AM #4

i decided to try to reinstall the whole cart and everything so the shop is now at http://www.hampdenclothing.com/store. needless to say this didn't work. thanks so much for trying though. i tried both settings you suggested and they don't seem to work either.

 
  • convello
  • Junior Member
  • Members
  • Join Date: 02-Nov 06
  • 19 posts

Posted 05 February 2007 - 02:56 AM #5

i think it has something to do with the fact that cs-cart isn't properly detecting when the server is in https mode?

whenever i enable ssl in the backend of the admin login and try to click checkout when its supposed to changed into ssl it times out, normally takes about 20 seconds, mozilla gives me this message:

The page isn't redirecting properly

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

* This problem can sometimes be caused by disabling or refusing to accept
cookies.

The url it generates when i click checkout is as follows:

secure.netsolhost.com/hampdenclothing.com/store/index.php?target=checkout&mode=customer_info&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd&csid=b426cbde7e35440fecedacdaa31ff930&sl=EN¤cy=usd

i still can't figure out why its repeating the variables like 6 times a piece my guess is thats why its hanging up and it won't load. when i load it with ssl turned off clicking the link loads: hampdenclothing.com/store/index.php?target=checkout&mode=customer_info and works perfectley fine.

i'm using paypal pro so isn't the connection between my host and paypal encrypted anyways? do i absolutely need ssl or is it just to make the customer feel better?

i finally figured out a workaround for the style sheets while using ssl, i simply included the link to style.css twice in index.tpl but for the 2nd i used "/hampdenclothing{$skin_dir}/style.css" and so now the styles are displayed correctly but all the images are still broken. no matter how i reformat the config.php it still doesn't reference the images correctly in the shopping cart while used the shared ssl. i'm completely baffled.

 
  • zeke
  • Megamind
  • Administrators
  • Join Date: 01-Nov 05
  • 472 posts

Posted 09 February 2007 - 08:46 AM #6

The right code for secure server is:
$cscart_https_host = 'secure.netsolhost.com';
$cscart_https_dir = '/hampdenclothing.com/shop';  


 
  • zeke
  • Megamind
  • Administrators
  • Join Date: 01-Nov 05
  • 472 posts

Posted 09 February 2007 - 08:50 AM #7

i think it has something to do with the fact that cs-cart isn't properly detecting when the server is in https mode?


The fact is that different servers has different methods of detecting secure mode. The most popular is "HTTPS" key in php's $_SERVER array set to "on" or "1" value. CS-Cart 1.3.4 has special script ("core/https_detect.php") where several most popular https detection methods are placed. You can add your own method there.

Hope this makes sense.

 
  • Yaso Kuuhl
  • Junior Member
  • Members
  • Join Date: 20-Feb 07
  • 1 posts

Posted 20 February 2007 - 06:49 AM #8

CS-Cart 1.3.4 has special script ("core/https_detect.php") where several most popular https detection methods are placed. You can add your own method there.

This is what helped for my similar problem. My customers hoster use an ssl-proxy (sslsites.de), adding the following lines to https_detect.php solved my problem with ssl-redirection and images+stylesheets links:

} elseif (isset($_SERVER['HTTP_X_FORWARDED_SERVER']) && ($_SERVER['HTTP_X_FORWARDED_SERVER']=='sslsites.de')) {
define('HTTPS', true);

 
  • Alfie
  • Senior Member
  • Members
  • Join Date: 06-Jun 06
  • 132 posts

Posted 17 April 2008 - 03:51 PM #9

This is what helped for my similar problem. My customers hoster use an ssl-proxy (sslsites.de), adding the following lines to https_detect.php solved my problem with ssl-redirection and images+stylesheets links:

} elseif (isset($_SERVER['HTTP_X_FORWARDED_SERVER']) && ($_SERVER['HTTP_X_FORWARDED_SERVER']=='sslsites.de')) {
define('HTTPS', true);


worked like a charm!

Alfie