altea Posted March 21, 2008 Posted March 21, 2008 I have a osC live site on hosted with an ISP [A] which is working okay. I am developing a replacement for it which is separately hosted with a new ISP . The development site B is a mirror copy of the live Site A. I have four domain names one of which is which pointed to the development Site B along with the ISP domain name. The others remain pointed to the live Site A. Problem: When any link is clicked on on the development Site B it always resolves to the live Site A which means I have no visibility of the content of the development site. I have checked all the obvious .php files, ISP configuration and domain forwarding etc.. My ISP is no help, but I am sure this something silly, which I am overlooking, but what? Any pointers would be welcome. Cheers /J
Guest Posted March 22, 2008 Posted March 22, 2008 Hello, DomainA.com -> Host Server B (Development Site) DomainB.com - Foward to -> Host Server A DomainC.com - Foward to -> Host Server A DomainD.com - Foward to -> Host Server A Are you access Development Site by DomainA.com? Best regards
altea Posted March 22, 2008 Author Posted March 22, 2008 Hello, DomainA.com -> Host Server B (Development Site) DomainB.com - Foward to -> Host Server A DomainC.com - Foward to -> Host Server A DomainD.com - Foward to -> Host Server A Are you access Development Site by DomainA.com? Best regards Hi I confirm that I can access the Development site by using Domain A. Clicking any link from the development site home page resolves back to the Live site. The development site is a mirror copy of the live site so I suspect that the copy contains some hard-coded instruction that is refers back to the copied site. I have searched through the various configuration files and the DB and cannot find any code that indicates that this is occurring. The configure.php has all the correct paths set. I have no directs set up in the hosting cpanel so I am at a loss to explain that is happening. I have plainly over-looked something, but what?? /J
altea Posted March 22, 2008 Author Posted March 22, 2008 UPDATE ===== I have discovered why the resolve to the Live site occurs. The original site developer "kindly" added a 404.shtml file into the site route which acts as a redirect when a page cannot be found. Answering this problem now poses another. Why do I get the following message when a link is clicked? >> Not Found The requested URL /actormate-ameba-laser-49mw-p-1166.html was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. << Again, this must be a configuration problem as the http server cannot find the pages to display, but everything seems to appear correct in the configure.php; see below: <?php /* osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] 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://avsonix.myzen.co.uk'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers define('HTTPS_SERVER', 'http://avsonix.myzen.co.uk'); // eg, [url="https://localhost"]https://localhost[/url] - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'avsonix.myzen.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'avsonix.myzen.co.uk'); 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/'); //Added for BTS1.0 define('DIR_WS_TEMPLATES', 'templates/'); define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/'); define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/'); //End BTS1.0 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/data01/avsonix/public_html/'); 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'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '******_userdb'); define('DB_SERVER_PASSWORD', '******'); define('DB_DATABASE', '*****_live'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' Any suggestions would be very gratefully received!! /J :x
altea Posted March 22, 2008 Author Posted March 22, 2008 UPDATE ===== What does work is the Product Search which will return a product listing, but if the individual product details are then clicked then the error is received. The shopping cart and check out functions appear to work when the accessed from the search results. This would seen to indicate that the DB connection is okay but something else is seriously wrong! See: http://avsonix.myzen.co.uk/index.php Any suggestions would be very gratefully received!! /J
Recommended Posts
Archived
This topic is now archived and is closed to further replies.