Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

duplicating my url in admin area?


erspangler

Recommended Posts

Posted

Hello,

 

After installing oscommerce I went into my admin area to begin working with my site. When clicking on "configuration", the url it's trying to go to is:

 

http://www.mysite.com/shop/admin://www.mys.../blahblahblah...

 

So obviously, I'm getting 404 errors. If I stop and take off the first part of the url it will work, but then as soon as I click on anything to edit, it does it again. How do I fix this?

 

Erin

Posted

You should open and check your /admin/includes/configure.php

Somehow the url got duplicated

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Posted
You should open and check your /admin/includes/configure.php

Somehow the url got duplicated

 

 

Ok, I know nothing about php, could you tell me what I'm looking for? There are a couple of places that say "absolute path required? Do I change one of them? to what? I did adjust the following code taking out my personal information.

 

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

define('HTTP_CATALOG_SERVER', '://');

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_FS_DOCUMENT_ROOT', '/home/mainwebsite/mysite.com/shop/'); // where the pages are located on the server

define('DIR_WS_ADMIN', 'www.mysite.com/shop/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/mainwebsite/mysite.com/shop/admin/'); // absolute pate required

define('DIR_WS_CATALOG', 'www.mysite.com/shop/'); // absolute path required

define('DIR_FS_CATALOG', '/home/mainwebsite/mysite.com/shop/'); // 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('DB_SERVER', 'mysql.mywebsite.com'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'username');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'shoppingcart');

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

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

Posted

Try something like this

 

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

 

Not 100% sure that is right or not, I always install to the root folder so it could be wrong.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Archived

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

×
×
  • Create New...