Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moved strore to root


Guest

Recommended Posts

Hi,

 

Moved store to root last night, the store itself works OK (it seems)

 

But when I go to admin, the menu appears but when I click a link I get page not found errors.

I adjusted both configure.php files, I have posted them below, could someone glance over them i'm guessing ive missed something obvious.

 

/includes/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://www.justrimless.com'); // eg, http://localhost - should not be empty for productive servers

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

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

define('HTTP_COOKIE_DOMAIN', 'www.justrimless.com');

define('HTTPS_COOKIE_DOMAIN', 'www.justrimless.com');

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:/users/cyberprog/justrimless/www/');

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

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

 

// define our database connection

***

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

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

 

// CLR 020605 defines needed for Product Option Type feature.

define('PRODUCTS_OPTIONS_TYPE_SELECT', 0);

define('PRODUCTS_OPTIONS_TYPE_TEXT', 1);

define('PRODUCTS_OPTIONS_TYPE_RADIO', 2);

define('PRODUCTS_OPTIONS_TYPE_CHECKBOX', 3);

define('PRODUCTS_OPTIONS_TYPE_TEXTAREA', 4);

define('TEXT_PREFIX', 'txt_');

define('PRODUCTS_OPTIONS_VALUE_TEXT_ID', 0); //Must match id for user defined "TEXT" value in db table TABLE_PRODUCTS_OPTIONS_VALUES

?>

 

 

/admin/includes/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://www.justrimless.com'); // eg, http://localhost - should not be empty for productive servers

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

define('HTTPS_CATALOG_SERVER', 'https://www.justrimless.com');

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

define('DIR_FS_DOCUMENT_ROOT', 'd:/users/cyberprog/justrimless/www/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/admin/'); // absolute path required

define('DIR_FS_ADMIN', 'd:/users/cyberprog/justrimless/www/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_FS_CATALOG', 'd:/users/cyberprog/justrimless/www/'); // absolute path required

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

 

// define our database connection

***

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

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

?>

 

Thanks in advance!

Link to comment
Share on other sites

Hi,

 

Moved store to root last night, the store itself works OK (it seems)

 

But when I go to admin, the menu appears but when I click a link I get page not found errors.

I adjusted both configure.php files, I have posted them below, could someone glance over them i'm guessing ive missed something obvious.

 

Thanks in advance!

 

I have had a look in the .htaccess file, there doesnt seem to be anything in there which applies to this, but is it likely?

Link to comment
Share on other sites

Hi,

 

Moved store to root last night, the store itself works OK (it seems)

 

But when I go to admin, the menu appears but when I click a link I get page not found errors.

I adjusted both configure.php files, I have posted them below, could someone glance over them i'm guessing ive missed something obvious.

 

 

Thanks in advance!

 

Ok newsflash!

 

The admin screen comes up OK.

If I click refresh, then click a link it goes OK (but only if I refresh 1st) , but the next click is page not found.

Surely that makes the problem easier to track down.

Link to comment
Share on other sites

Ok newsflash!

 

The admin screen comes up OK.

If I click refresh, then click a link it goes OK (but only if I refresh 1st) , but the next click is page not found.

Surely that makes the problem easier to track down.

 

I dont know if it is bad form to keep replying to your own posts but....

 

I seem to be able to hold a connection longer if I use https when logging onto the admin rather than http. Then after a page not found error I add the s onto http and click go.

 

I need to get this sorted now, my host isnt arsed he just wants me to move it back to catalog.

 

I have succesfully installed a different store in the root on another site so im wondering whether to just start from scratch, but I dont want the headache of removing columns and installing contributions again.

 

Any ideas?

 

Rick

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...