Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I have SSL, now what? Do I need to copy directories?


robyoung

Recommended Posts

Posted

I now have a SSL certificate and want to get admin and account etc on https.

 

How do I do this? Copy the directories over?

 

Help appreciated.... bonus waiting!

 

Rob

Posted

Sorry if I am being stupid!

 

This is my config file....

 

 

<?php

// Please, note that all changes in this file will be lost

// after reconfiguring application by Plesk

define('HTTP_SERVER', 'http://www.youngandsmart.co.uk');

define('HTTPS_SERVER', 'http://www.youngandsmart.co.uk');

define('ENABLE_SSL', 'true');

define('HTTP_COOKIE_DOMAIN', 'youngandsmart.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'youngandsmart.co.uk');

define('HTTP_COOKIE_PATH', '/Store/');

define('HTTPS_COOKIE_PATH', '/Store/');

define('DIR_WS_HTTP_CATALOG', '/Store/');

define('DIR_WS_HTTPS_CATALOG', '/Store/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Posted

It is correct except for this line

define('HTTPS_SERVER', 'http://www.youngandsmart.co.uk');

It should be

define('HTTPS_SERVER', 'https://www.youngandsmart.co.uk');

The extra s in https stands for secure, meaning the ssl certificate. Also, if your shop is on a linus server and it is named store, not Store, then this will fail.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Archived

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

×
×
  • Create New...