1and1 SSL Fix for CRE Loaded



1AND1 SSL FIX

Due to the many problems people have had (including myself) with using a dedicated or shared SSL with 1AND1 internet hosting I have decided to add it as a contribution to help people to easily find it. This includes the 'necessary' changes needed to get your SSL working properly when hosted by this popular hosting company. I have included the changes that need to be made when either using a shared SSL or a dedicated SSL which are both different. In addition to this I have also included the instructions on how to code your html or using the WYSIWYG HTML Editor when inserting images so that they are changed to the https when in secure mode. The download includes the same text below so theirs no need to download it. Credit goes to the original persons who mentioned these fixes in the forum. I've just compiled them and told you which ones to use for which (and added relative address code) as it was not clear in the forum which ones actually worked and for which type of SSL it would or would not work with.

BACKUP YOUR FILES FIRST!!!

DEDICATED SSL WITH 1AND1 HOSTING
*************************************************
1. Change:
(getenv('HTTPS') == 'on')
to
(getenv('HTTPS') == '1')
in
includes/application_top.php
includes/functions/general.php
admin/index.php

2. The correct relative address html code for images using the dedicated ssl would be for example src="/images/logo_background_default.gif" with the '/' in the front.This is for either using your own html pages in the site or using the ever popular WYSIWYG HTML Editor which does not normally format the code in this way. Therefor you will need to manually change it.


SHARED SSL WITH 1AND1 HOSTING
*********************************************
1. Add below:
$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';
this
$request_type = (eregi ($HTTP_HOST, HTTPS_SERVER)) ? 'SSL' : 'NONSSL';
in
includes/application_top.php

2. The correct relative address html code for images using the dedicated ssl would be for example src="images/logo_background_default.gif" WITHOUT the '/' in the front. This is for either using your own html pages in the site or using the ever popular WYSIWYG HTML Editor which does not normally format the code in this way. Therefor you will need to manually change it.

3. In includes/configure.php adjust your configuration in the following way in the example below.

define('HTTPS_SERVER', 'https://web1.secure-secure.com/yoursitename.com'); // eg, https://localhost - should not be empty for productive servers
define('HTTP_COOKIE_DOMAIN', 'www.yoursitename.com');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');

This contribution has been found on osCommerce website, but you can ask us how much would it cost to get it working with CRE Loaded

Categories

 
 

Customers says

CRE Help is supporting us day after day to make our on-line shop more complete and competitive. They are continuously upgrading our system, customizing files, programming; they are really fast, efficient and cost effective...

Manuel Arroyo, Spain
Read all testimonials