li_osc Posted October 23, 2009 Posted October 23, 2009 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
multimixer Posted October 23, 2009 Posted October 23, 2009 You need to set the correct paths in the 2 configure.php files (includes/ and admin/includes/ and check your .htaccess file My community profile | Template system for osCommerce - New: Responsive | Feedback channel
li_osc Posted October 23, 2009 Author Posted October 23, 2009 Thanks, could you let me know which part of the code this is please?
multimixer Posted October 24, 2009 Posted October 24, 2009 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) My community profile | Template system for osCommerce - New: Responsive | Feedback channel
Recommended Posts
Archived
This topic is now archived and is closed to further replies.