Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

http to https?


centtaco

Recommended Posts

Posted

OK I just got secured but now I am told that I need to config my site to be redirected to https. Can anyone tell me how to do this?

Posted

Uh...ok... I just followed the instructions on the page you gave me, and at first i got a weird error message that it could not connect to the database. And I did not do a thing to it after that, now its back up but all my products are gone? Its like its been reset. What happened?

Posted

You are talking about setting your config files for SSL right? A link to your site could help too.

 

I just had a look at your site and your config file appears to be set wrong. Post the top part of that file minus the DB info.

Posted
You are talking about setting your config files for SSL right? A link to your site could help too.

 

I just had a look at your site and your config file appears to be set wrong. Post the top part of that file minus the DB info.

 

here ya go

 

My Includes/configure.php

 

define('HTTP_SERVER', 'http://www.99centtaco.com');

define('HTTPS_SERVER', 'http://www.99centtaco.com');

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'www.99centtaco.com');

define('HTTPS_COOKIE_DOMAIN', 'www.99centtaco.com');

define('HTTP_COOKIE_PATH', '/~seaman/osc_13/Trinity.1634/');

define('HTTPS_COOKIE_PATH', '/~seaman/osc_13/Trinity.1634/');

define('DIR_WS_HTTP_CATALOG', '/~seaman/osc_13/Trinity.1634/');

define('DIR_WS_HTTPS_CATALOG', '/~seaman/osc_13/Trinity.1634/');

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', '/usr/home/seaman/public_html/osc_13/Trinity.1634/');

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

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

 

 

My admin/includes/configure.php

 

define('HTTP_SERVER', 'http://www.99centtaco.com');

define('HTTP_CATALOG_SERVER', 'http://www.99centtaco.com');

define('HTTPS_CATALOG_SERVER', 'http://www.99centtaco.com');

define('ENABLE_SSL_CATALOG', 'true');

define('DIR_FS_DOCUMENT_ROOT', '/usr/home/seaman/public_html/osc_13/Trinity.1634/');

define('DIR_WS_ADMIN', '/~seaman/osc_13/Trinity.1634/admin/');

define('DIR_FS_ADMIN', '/usr/home/seaman/public_html/osc_13/Trinity.1634/admin/');

define('DIR_WS_CATALOG', '/~seaman/osc_13/Trinity.1634/');

define('DIR_FS_CATALOG', '/usr/home/seaman/public_html/osc_13/Trinity.1634/');

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

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

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

Posted

What is this? ~seaman/osc_13/Trinity.1634

 

Try this for your configs. Make sure to back them up first.

includes/configure.php

  define('HTTP_SERVER', 'http://www.99centtaco.com');
 define('HTTPS_SERVER', 'https://www.99centtaco.com');
 define('ENABLE_SSL', true);
 define('HTTP_COOKIE_DOMAIN', 'www.99centtaco.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.99centtaco.com');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 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($_SERVER['SCRIPT_FILENAME']) . '/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

admin/includes/configure.php

  define('HTTP_SERVER', 'http://www.99centtaco.com');
 define('HTTP_CATALOG_SERVER', 'http://www.99centtaco.com');
 define('HTTPS_CATALOG_SERVER', 'https://www.99centtaco.com');
 define('ENABLE_SSL_CATALOG', 'true');
 define('DIR_FS_DOCUMENT_ROOT', '/usr/home/seaman/public_html/');
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

Posted

Please keep everything in this thread and not the pm's. Others are out here that can help not to mention those that are out who can bennifit from this thread.

 

But my site still doesn't go to https unless i type it in. Is there something I'm forgetting?

The site is going from http to https. Click on my account and you will see. Only the secure pages go to https.

I also get this message in admin now.

Error: Catalog images directory does not exist: /usr/home/seaman/public_html//images/

Well that was not your document root. In admin/includes/configure.php replace this

  define('DIR_FS_DOCUMENT_ROOT', '/usr/home/seaman/public_html/');

with

  define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']);

Archived

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

×
×
  • Create New...