Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I rename the catalog folder


tegralens

Recommended Posts

How do I rename the catalog folder. I have already put a lot of products there but I never renamed the catalog folder when I installed it. I would like to change it from www.mysite.com/oscommerce to www.mysite.com/store please let me know how you do this step by step I am very new at oscommerce and php. Thank you in advance.

Link to comment
Share on other sites

How do I rename the catalog folder.  I have already put a lot of products there but I never renamed the catalog folder when I installed it.  I would like to change it from www.mysite.com/oscommerce to www.mysite.com/store please let me know how you do this step by step I am very new at oscommerce and php.  Thank you in advance.

 

This has been answered a few times that I know of. If you didn't poke around first always give that a shot before posting.

 

That said rename the folder (using ftp or ssh or telnet or whatever you have available) then change the paths in your config files (inside the includes dir for both the admin and catalog).

 

Check that it works. If not check your config files more closely.

 

That should be all there is to it!

 

Iggy

Everything's funny but nothing's a joke...

Link to comment
Share on other sites

This has been answered a few times that I know of. If you didn't poke around first always give that a shot before posting.

 

That said rename the folder (using ftp or ssh or telnet or whatever you have available) then change the paths in your config files (inside the includes dir for both the admin and catalog).

 

Check that it works. If not check your config files more closely.

 

That should be all there is to it!

 

Iggy

 

ok i found the file but which one do I change

I have these

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

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

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

 

Which one do I change?

Link to comment
Share on other sites

All of them (after renaming the folder, of course).

 

-jared

I renamed the folder and the configure.php in the catalog folder and the admin folder but after that I can't login to admin now. Here is what I changed

 

Before

define('HTTP_SERVER', 'http://mysite.com');

define('HTTP_CATALOG_SERVER', 'http://mysite.com');

define('HTTPS_CATALOG_SERVER', 'http://mysite.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/mysite.com/httpdocs');

define('DIR_WS_ADMIN', '/oscommerce/admin/');

define('DIR_FS_ADMIN', '/home/httpd/vhosts/mysite.com/httpdocs/oscommerce/admin');

define('DIR_WS_CATALOG', '/oscommerce/');

define('DIR_FS_CATALOG', '/home/httpd/vhosts/mysite.com/httpdocs/oscommerce/');

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

 

 

After

 

define('HTTP_SERVER', 'http://mysite.com');

define('HTTP_CATALOG_SERVER', 'http://mysite.com');

define('HTTPS_CATALOG_SERVER', 'http://mysite.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/mysite.com/httpdocs');

define('DIR_WS_ADMIN', '/store/admin/');

define('DIR_FS_ADMIN', '/home/httpd/vhosts/mysite.com/httpdocs/store/admin');

define('DIR_WS_CATALOG', '/store/');

define('DIR_FS_CATALOG', '/home/httpd/vhosts/mysite.com/httpdocs/store/');

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

 

 

Where did I go wrong I wanted to change the site to be www.mysite.com/store and everything that said oscommerce I changed to store. please help Thank you everyone for helping.

Link to comment
Share on other sites

I renamed the folder and the configure.php in the catalog folder and the admin folder but after that I can't login to admin now.  Here is what I changed

 

Before

define('HTTP_SERVER', 'http://mysite.com');

define('HTTP_CATALOG_SERVER', 'http://mysite.com');

define('HTTPS_CATALOG_SERVER', 'http://mysite.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/mysite.com/httpdocs');

define('DIR_WS_ADMIN', '/oscommerce/admin/');

define('DIR_FS_ADMIN', '/home/httpd/vhosts/mysite.com/httpdocs/oscommerce/admin');

define('DIR_WS_CATALOG', '/oscommerce/');

define('DIR_FS_CATALOG', '/home/httpd/vhosts/mysite.com/httpdocs/oscommerce/');

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

After

 

define('HTTP_SERVER', 'http://mysite.com');

define('HTTP_CATALOG_SERVER', 'http://mysite.com');

define('HTTPS_CATALOG_SERVER', 'http://mysite.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/mysite.com/httpdocs');

define('DIR_WS_ADMIN', '/store/admin/');

define('DIR_FS_ADMIN', '/home/httpd/vhosts/mysite.com/httpdocs/store/admin');

define('DIR_WS_CATALOG', '/store/');

define('DIR_FS_CATALOG', '/home/httpd/vhosts/mysite.com/httpdocs/store/');

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

Where did I go wrong I wanted to change the site to be www.mysite.com/store and everything that said oscommerce I changed to store.  please help Thank you everyone for helping.

 

Anyone have any iteas what happened?

Link to comment
Share on other sites

Try the following:

 

change

define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/mysite.com/httpdocs');

define('DIR_WS_ADMIN', '/store/admin/');

 

to

define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/mysite.com/httpdocs/store/');

define('DIR_WS_ADMIN', '/admin/');

 

 

change

define('DIR_FS_ADMIN', '/home/httpd/vhosts/mysite.com/httpdocs/store/admin');

 

to

define('DIR_FS_ADMIN', '/home/httpd/vhosts/mysite.com/httpdocs/store/admin/');

 

 

-jared

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...