Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

changing the intstallation directory


Leomans

Recommended Posts

I installed oscommerce recently for the first time, in the following directory:

http://www.yourdomain.com/catalog

 

at the moment my domain name is redirected to the /catalog directory because of this.

 

However, I think it's better for search engine submission / ranking to have it installed in the root directory of my domain, http://www.yourdomain.com/

 

I therefore want to move my system to this root directory. Can somebody help me with this please?

What is the easiest way to do this? Do I need to run a complete re-install of oscommerce in that directory, or can I simply move the whole thing to the correct directory and change some lines in various files.

 

Any comments on whether this is actually necessary (with respect to search engine rankings) would also be appreciated.

Link to comment
Share on other sites

If your osCommerce catalog has not been customized you could simply uninstall and reinstall in the root directory. If it has been customized you could use your FTP program to move the files to the root directory and reconfigure your 2 configure.php files - replace "/catalog/" from all address paths with "/" (without quotation marks). Yes your pages will index better at root level.

 

scot

Link to comment
Share on other sites

- replace "/catalog/" from all address paths with "/" (without quotation marks).

clarification: replace "/catalog/" from all address paths with '/' (with single quotation marks). sorry late night ...

scot

Link to comment
Share on other sites

If your osCommerce catalog has not been customized you could simply uninstall and reinstall in the root directory. If it has been customized you could use your FTP program to move the files to the root directory and reconfigure your 2 configure.php files - replace "/catalog/" from all address paths with "/" (without quotation marks). Yes your pages will index better at root level.

 

scot

 

 

Scot

 

Thanks very much for this.

This all makes sense. I'll do this.

 

Cheers

 

Neil

Link to comment
Share on other sites

I also had my site installed in /catalog and I wanted it in my root. I did as instructed above to move everything over but all the links still refer to the /catalog directory for files. Any suggestions? Here is what my /includes/configure.php looks like.

 

// Define the webserver and path parameters

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

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

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

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

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

define('HTTP_COOKIE_DOMAIN', 'getbobbleheads.com');

define('HTTPS_COOKIE_DOMAIN', 'secure.seekdotnet.com/R639');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_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', 'D:\\Clients\\C2270\\R639\\getbobbleheads.com\\public_html\\');

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

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

 

And here is my /admin/includes/configure.php

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'Http://www.getbobbleheads.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'Http://www.getbobbleheads.com');

define('HTTPS_CATALOG_SERVER', 'https://secure.seekdotnet.com/r639');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', 'D:\\Clients\\C2270\\R639\\getbobbleheads.com\\public_html\\'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

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

define('DIR_FS_ADMIN', 'D:\\Clients\\C2270\\R639\\getbobbleheads.com\\public_html\\admin\\');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', 'D:\\Clients\\C2270\\R639\\getbobbleheads.com\\public_html\\');

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

 

 

Thanks, Robert

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...