di_stephano20 Posted April 21, 2007 Share Posted April 21, 2007 I get a very strange result when i try to install oscommerce on a subdomain... after i install the files needed for the store to work... i get a very strange thing: my categories are not the real ones instead they are from my primary site.... but when i click on a product i get my subdomain categories back.. this is strange i can't understand why..... when i click on home.. the bad categories comes back.. what am i doing wrong here? where is my mistake? to make this really clear i will post my links here.. i hope the admins will not ban me.. but i don't have any solution.. so i am kind of stuck... my primary site is www.angelosoft.ro and the subdomain is www.ciel.cangelosoft.ro the categories from angelosoft.ro appears on the ciel.angelosoft.ro site... but the products listed on my front page, new product boxes, promotion boxes are from ciel.angelosoft.ro. I will post my configure file as well define('HTTP_SERVER', 'http://www.ciel.angelosoft.ro'); define('HTTPS_SERVER', 'http://www.ciel.angelosoft.ro'); define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'ciel.angelosoft.ro'); define('HTTPS_COOKIE_DOMAIN', 'ciel.angelosoft.ro'); 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', '/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '*****'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', '*****'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); ?> what should i do? the database connection is good.... otherwise the rest of the product would not appear at all... oh ... i forgot to mention.. THE FIRST TIME I ENTERED CIEL.ANGELOSOFT.RO EVERYTHING WORKED FINE... after i click on home button... disaster happened!! maybe it has something to do with cookies? or cache? i still think it's the configure.php file that can corect this.. but how ??? any ideeas??? thanks in advance Link to comment Share on other sites More sharing options...
di_stephano20 Posted April 23, 2007 Author Share Posted April 23, 2007 any ideas? please.. pretty please? Link to comment Share on other sites More sharing options...
oschellas Posted April 23, 2007 Share Posted April 23, 2007 The main categories seems to be using Search-Engine Safe URLs, if you installed a contribution for this it would a good idea to check you htaccess files. Link to comment Share on other sites More sharing options...
nerbonne Posted April 23, 2007 Share Posted April 23, 2007 Well, it's impossible for me to say without looking at your hosting account, but from past experience, "most" subdomain files are located in a subfolder of the root site, which means that this variable needs to include that folder name: define('DIR_WS_HTTP_CATALOG', '/'); probably should look like: define('DIR_WS_HTTP_CATALOG', '/ciel/'); Link to comment Share on other sites More sharing options...
di_stephano20 Posted April 23, 2007 Author Share Posted April 23, 2007 Well, it's impossible for me to say without looking at your hosting account, but from past experience, "most" subdomain files are located in a subfolder of the root site, which means that this variable needs to include that folder name: define('DIR_WS_HTTP_CATALOG', '/'); probably should look like: define('DIR_WS_HTTP_CATALOG', '/ciel/'); yes my subdomain is located in a subfolder of the root... i will try your solution to see if it works.. i will post back a message if it worked for me! Link to comment Share on other sites More sharing options...
di_stephano20 Posted April 23, 2007 Author Share Posted April 23, 2007 It is not working ... i tried to put define('DIR_WS_HTTP_CATALOG', '/ciel/'); but still no good.. it still shows the categories from angelosoft.ro instead of the categories from ciel.angelosoft.ro here is the strange thing.. i've played around with the configure.php a little bit more.. // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.angelosoft.ro/ciel'); define('HTTPS_SERVER', 'http://www.angelosoft.ro/ciel'); define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'angelosoft.ro/ciel'); define('HTTPS_COOKIE_DOMAIN', 'angelosoft.ro/ciel'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', '/ciel/images/'); define('DIR_WS_ICONS', '/ciel/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); and this time it works perfectly if i access the site like this: www.angelosoft.ro/ciel if i type www.ciel.angelosoft.ro the categories from angelosoft.ro are overwriting my categories from ciel... what should i do? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.