Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Redirect Problems


nmonk

Recommended Posts

Posted

Hi all

 

I have just spent two frustrating days trying to get the redirects working in osC.

I keep getting a 404 error.

 

I have my http on one virtual server and the secure pages on a different domain. I need help and I am pretty sure the problem exists in the config.

 

I have included the files here.

 

Admin:

 

define('HTTP_SERVER', 'http://www.xxxxx.co.nz/catalog'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.xxxxxx.co.nz/catalog');

define('HTTPS_CATALOG_SERVER', 'https://www.xxxxxx.co.nz/photolab/');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/grpc/secure/catalog/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/home/grpc/secure/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/grpc/secure/catalog/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/home/grpc/secure/catalog/'); // absolute path required

define('DIR_FS_CATALOG', '/home/grpc/secure/catalog/'); // absolute path required

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/');

 

includes/config:

 

define('HTTP_SERVER', 'http://www.xxxxx.co.nz/secure/'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.xxxxxxx.co.nz/photolab/'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'http://www.xxxxxx.co.nz');

define('HTTPS_COOKIE_DOMAIN', 'https://www.xxxxxxx.co.nz/photolab');

define('HTTP_COOKIE_PATH', 'secure/catalog/');

define('HTTPS_COOKIE_PATH', '/');

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

define('DIR_WS_HTTPS_CATALOG', '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', 'catalog/');

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

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

 

I have tried some of the fixes posted but nothing seems to change.

 

many thanks

 

Nathan

Posted

are they two different domains? it is hard to tell since you didnt put your domain name in there. if you are requesting help, you need to help us by providing information. if physically different servers, the session id's are probably not being passed.

Archived

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

×
×
  • Create New...