lchancy Posted January 27, 2004 Share Posted January 27, 2004 Hi, I am trying to help a friend move his oscommerce-driven website to a new server that has php 4.3.2 and apache 2.0.46. The test site brings up the index.php page without a problem, but all the links create a cookie that errors out. The currently working site uses the syntax example /index.php/cPath/40_41? but the new one gives an error (The requested URL /index.php/cPath/40_41 was not found on this server). "/index.php?cPath=40_41&" works fine, but I'm not sure how to a) change the formatting or b) make it compatible with the current slash format. Thanks, Larry Link to comment Share on other sites More sharing options...
Guest Posted January 27, 2004 Share Posted January 27, 2004 have no idea what you are doing, if you move a site from one server to another, then you will have to change the paths respectively, the rest should be no problem. other than setting up mysql. Link to comment Share on other sites More sharing options...
lchancy Posted January 27, 2004 Author Share Posted January 27, 2004 I've changed the directory paths already, it's the cookie that is giving the error. For some reason it is interpreting it as a subdirectory because it uses /cPath/ rather than ?cPath=. I've not been able to find where that is assigned. The currently working URL is at http://www.dolphinplumbingsupply.com The test site is at http://207.200.30.135 this method works on both: /index.php?cPath=40&osCsid=xxx this method works only on the first: /index.php/cPath/40?osCsid=xxx I'd happily switch to using the first method if I knew how. Is there a config setting that defines whether it uses /cPath/ or ?cPath= ? Link to comment Share on other sites More sharing options...
Guest Posted January 28, 2004 Share Posted January 28, 2004 Yes I have the same problem. However I did not upgrade. I had a new install of MS2.2 all was fine until I installed a AutoLogon mod. Now all hell has broken out. What is strange is not only can I not browse because it keeps using - /index.php/cPath/21 instead of /index.php?cPath=21 But at the bottom of the screen it says Error! Unable to determine the page link! So I was smart enough to have a full backup of my entire oscommerce directorys and restored back to a previous state the WAS working. And you wont believe it I STILL have the same problem. Please can anyone help me. I did not backup the mySql can the problem be in there my URL to check it www.oz-pcrepair.com.au Link to comment Share on other sites More sharing options...
lchancy Posted January 29, 2004 Author Share Posted January 29, 2004 I toggled the Safe URL Search Engine setting and that fixed my problem too. I wonder why it doesn't work with this newer version, guess thats why it is still under development. Thanks for your help, Larry Link to comment Share on other sites More sharing options...
Guest Posted January 29, 2004 Share Posted January 29, 2004 ms2 is not the problem, it is most likely a setting in the configure.php and tied in with the server document root Link to comment Share on other sites More sharing options...
treborr Posted February 3, 2004 Share Posted February 3, 2004 I have same problem with path in the url. Can anybody help? Link to comment Share on other sites More sharing options...
Guest Posted February 3, 2004 Share Posted February 3, 2004 if any of you would post your configure.php files here and also a list of what you installed last, we may be able to help. Link to comment Share on other sites More sharing options...
Guest Posted February 15, 2004 Share Posted February 15, 2004 Here if the CATALOG version of Config.php I have the contribution off now, but would love to turn it on. I was going to use a contribution called SEF but it said I needed mod_rewrite access on my server for the .htaccess file. I do not so cant use. So my google listings are like page 9. PLEASSSSEEEE HELP ME !!!!!!! <?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.oz-pcrepair.com.au'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.oz-pcrepair.com.au'); define('HTTPS_COOKIE_DOMAIN', ''); 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', '/var/www/html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Here is the ADMIN version - <?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.oz-pcrepair.com.au'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.oz-pcrepair.com.au'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/var/www/html/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', '/var/www/html/'); // 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/'); Link to comment Share on other sites More sharing options...
Guest Posted February 15, 2004 Share Posted February 15, 2004 try it with a period in front of the www for the cookie, ie '.www.domain.com' if your domain is setup with two pointers, one an alias, as i do all my customers, their main domain is http://domain.com and the alias is http://www.domain.com this way people can get to the page with either setting. i keep it as '.domain.com' and have not had any problems. it could also deal with shared ssl if u have that. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.