Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to move the catalog into a new folder?


hongbiaoke

Recommended Posts

I'm pretty much an amature at osCommerce, I decided to move folders around, and found out that I did something stupid. I originally had my store in "D:\swamp\www\RCC" folder, but I have recently moved it to "C:\swamp\www\rccnet folder". I reinstalled SWAMP and osCommerce on C:\, then I copy all the files in "RCC" folder into the "rccnet" folder. Now, I have a big problem, when I was testing out the login page, it gave me an error:

 

Not Found

 

The requested URL /RCC/login.php was not found on this server.

Apache/2.0.43 Server at localhost Port 443

 

How do I change the files in "rccnet" folder to direct file in that folder and not "RCC" folder?

 

Thank you!

 

I currently use the following versions:

osCommerce-2.2ms2

SWAMP v.02

Link to comment
Share on other sites

Hehe, what a stupid question... I figured it out! For those who are stomped, this is what I did. I went into ...[catalog]\RCC\includes and open configure.php:

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

 

define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://localhost'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'localhost');

define('HTTPS_COOKIE_DOMAIN', 'localhost');

define('HTTP_COOKIE_PATH', '/rccnet/');

define('HTTPS_COOKIE_PATH', '/rccnet/');

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

define('DIR_WS_HTTPS_CATALOG', '/rccnet/');

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', 'C:/swamp/www/rccnet/');

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

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

 

// define our database connection

define('DB_SERVER', '127.0.0.1'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'username');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'database');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

Just change the text in red. That is all!! Was I dumb or what!?

Link to comment
Share on other sites

remember to make the same changes to the admin/includes/configure.php file to reflect the changed paths for catalog

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...