Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

duplicated store/database in different directory, but the urls for product categories is wrong


sukotto

Recommended Posts

Posted

Hi

 

I wanted to duplicate my store to another directory, where I can test code and tweak the store, while the main store is still live.

 

The main store is www.sukottoinc.com, and I copied a duplicate to www.sukottoinc.com/wholesale/catalog

 

I also modified the configure files in wholesale/catalog to point to the correct place, and database. I created another database for the duplicate store to write to.

 

That part seemed pretty straightforward, based on what I read here in the forums. When I load up the index page of the duplicate store, everything is working fine, and all the links are working. So I click on a category link, and it takes me to the page that contains all the products within that category. This is where I start getting problems. My problem is that now, when I click on a product, or if I click on another category, the url is pointing back to the equipvalent page in the main store. I want the duplicate store to operate solely within the duplicate store, and not point it back tot he live store.

 

Can someone tell me what else I must do, to correct this, and have a fully functional duplicate store? From playing around with the configure file, I have come to the conclusion that somehow, the duplicate store is still referencing the configure.php file from the main store, and not the duplicated store. How can i fix this?

 

Thanks

Posted
If you just copied files, you may have copied cache files. Log into your admin section and go to Tools > Cache Control and refresh your cache.

 

I just tried this, but it doesn't work. The links are still not correct.

 

anything else I can try?

Posted

  define('HTTP_SERVER', 'http://www.sukottoinc.com/wholesale/catalog');		
 define('HTTPS_SERVER', 'https://df10.dot5hosting.com');
 define('ENABLE_SSL', true);			// secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'sukottoinc.com/wholesale/catalog');
 define('HTTPS_COOKIE_DOMAIN', 'df10.dot5hosting.com/~sukottoi/wholesale/catalog');
 define('HTTP_COOKIE_PATH', '/wholesale/catalog/');
 define('HTTPS_COOKIE_PATH', '/~sukottoi/wholesale/catalog');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/~sukottoi/wholesale/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', '/home/sukottoi/public_html/wholesale/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

:(

Posted

Try

 

 

  define('HTTP_SERVER', 'http://www.sukottoinc.com');		
 define('HTTPS_SERVER', 'https://df10.dot5hosting.com');
 define('ENABLE_SSL', true);			// secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'sukottoinc.com');
 define('HTTPS_COOKIE_DOMAIN', 'df10.dot5hosting.com');
 define('HTTP_COOKIE_PATH', '/wholesale/catalog');
 define('HTTPS_COOKIE_PATH', '/~sukottoi/wholesale/catalog');
 define('DIR_WS_HTTP_CATALOG', '/wholesale/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/~sukottoi/wholesale/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', '/home/sukottoi/public_html/wholesale/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Contributions

 

Discount Coupon Codes

Donations

Posted

I already tried a version like that, but it did not work. I tried it again, as you had posted, and still the links and categories from any other page other than the index.php, show the wrong links.

 

I left the configure file you posted active, if you want to take a quick look.

Archived

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

×
×
  • Create New...