Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Duplicate site links back to main site


li_osc

Recommended Posts

Posted

Hi,

 

I've just duplicated my oscommerce site as a backup and testing site so that any installations i want to make can be done on the test one rather than messing up the main site...however, when i click the links on the index page they link back to the main site. Is there a file I need to change so that it stays on the test site?

 

Thanks for you help

Posted

I don't understand the question.

 

Did you found and open the mentioned files? So, what's the code in there? Is it not like a list of paths? Is it not obvious that anything pointing to the old site need to be changed to the new?

 

in includes/configure.php for example

  define('HTTP_SERVER', 'http://site1.net');
 define('HTTPS_SERVER', 'http://site1.net');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', 'site1.net');
 define('HTTPS_COOKIE_DOMAIN', 'site1.net');
 define('HTTP_COOKIE_PATH', '/teststores/store1/');
 define('HTTPS_COOKIE_PATH', '/teststores/store1/');
 define('DIR_WS_HTTP_CATALOG', '/teststores/store1/');
 define('DIR_WS_HTTPS_CATALOG', '/teststores/store1/');
 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', '/home/kuku/public_html/teststores/store1/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 define('DB_SERVER', 'localhost');
 define('DB_SERVER_USERNAME', 'kuku_tza');
 define('DB_SERVER_PASSWORD', 'cocacola');
 define('DB_DATABASE', 'hello_hello');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');

 

You need to change all paths to point to the new site you created, ie you change site1.net with site2.net and store1 with store2. Also new definitions for the database.

You need to do accordingly in admin/includes/configure.php

 

If there is still a problem then look what is written in your htaccess file (if you have)

Archived

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

×
×
  • Create New...