wangchao Posted January 23, 2006 Posted January 23, 2006 Hi, guys. I have to maintain a website which is developped by someone else. This website works fine (at least no apparent missing pages on an active domain) However, I failed to port it into my laptop. I just cannot click on any one of those categories after porting, which in turn tells me "Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster. Error 404 localhost 01/23/06 22:20:31 Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP/4.4.1-pl1 " Can someone help me out of this? 1) What have I installed to run osCommerce? I installed the most recent xampp release to run osc. It is an integrated package of php, mysql, and apache. 2) Are you sure you have ported the source codes correctly? Yes. I did the following to port the website content. a) backup database to have an oscommerce.sql file B) ftp all the contents of catalog to my local machine. c) copy the contents to apache htdoc directory d) run install from within IE to go through the configuration steps. e) point the IE to localhost to find this website. Everything seems fine before clicking on one of the categories. After I found I cannot click into categories to show the contents within. I tried to install an original oscomerce MS 2.2 into another subdirectory. It works perfect fine. It works ok with several forum applications in other directories too. I was intrigued to find that the same copy which cannot work with localhost while can operate ok with a real domain name. Maybe the configuration differs? I guess so. But I need someone with more experience to give me some hints. Each time the mouse is pointed to a category, there is a url link which corresponds to the page that user will be take. I found it is different for the same category for the two situation. When it is with a real domain name, after point to the category, the url at the left-bottom corner is something like "http://www.domain.com/batik-c-1007.html". While with localhost, the url is something like "http://localhost/esilk/batik-c-1007.html?osCsid=471484dfbe9043ca1b5ed81b28a610fd" Apparently, these two are different. in the .htacess file, the url rewrite rule is set as the followings: Options +FollowSymLinks All RewriteEngine On RewriteBase / RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING} RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING} The 'c' character in the urls hints the rewrite rule 2 is used for seo. So I went into index.php for clues but failed to find any. It is a little tough for someone without much experience of php, html, and mysql. Can someone give me some suggestions? If nobody responds, maybe I have to install the ultimate seo contribution into a clean copy of MS2.2 by myself :-(. Such that can I have some sense about this package. Can I solve this problem without this piece of sense? It seems a little bit stupid to port a working site to localhost only to find it is not working. I have to do this because I want to maintain this site by myself and hope I can do some development in the future. Any suggestions would be thankful David. Quote -David Wang
aragorn108 Posted February 8, 2006 Posted February 8, 2006 Hi, guys. I have to maintain a website which is developped by someone else. This website works fine (at least no apparent missing pages on an active domain) However, I failed to port it into my laptop. I just cannot click on any one of those categories after porting, which in turn tells me "Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster. Error 404 localhost 01/23/06 22:20:31 Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP/4.4.1-pl1 " Can someone help me out of this? 1) What have I installed to run osCommerce? I installed the most recent xampp release to run osc. It is an integrated package of php, mysql, and apache. 2) Are you sure you have ported the source codes correctly? Yes. I did the following to port the website content. a) backup database to have an oscommerce.sql file B) ftp all the contents of catalog to my local machine. c) copy the contents to apache htdoc directory d) run install from within IE to go through the configuration steps. e) point the IE to localhost to find this website. Everything seems fine before clicking on one of the categories. After I found I cannot click into categories to show the contents within. I tried to install an original oscomerce MS 2.2 into another subdirectory. It works perfect fine. It works ok with several forum applications in other directories too. I was intrigued to find that the same copy which cannot work with localhost while can operate ok with a real domain name. Maybe the configuration differs? I guess so. But I need someone with more experience to give me some hints. Each time the mouse is pointed to a category, there is a url link which corresponds to the page that user will be take. I found it is different for the same category for the two situation. When it is with a real domain name, after point to the category, the url at the left-bottom corner is something like "http://www.domain.com/batik-c-1007.html". While with localhost, the url is something like "http://localhost/esilk/batik-c-1007.html?osCsid=471484dfbe9043ca1b5ed81b28a610fd" Apparently, these two are different. in the .htacess file, the url rewrite rule is set as the followings: Options +FollowSymLinks All RewriteEngine On RewriteBase / RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING} RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING} The 'c' character in the urls hints the rewrite rule 2 is used for seo. So I went into index.php for clues but failed to find any. It is a little tough for someone without much experience of php, html, and mysql. Can someone give me some suggestions? If nobody responds, maybe I have to install the ultimate seo contribution into a clean copy of MS2.2 by myself :-(. Such that can I have some sense about this package. Can I solve this problem without this piece of sense? It seems a little bit stupid to port a working site to localhost only to find it is not working. I have to do this because I want to maintain this site by myself and hope I can do some development in the future. Any suggestions would be thankful David. Hi David, are you sure you've loaded mod_rewrite in your Apache config file? This solved the problem for me. My problem is now that osC automatically switches to English language after switching to e.g. German and clicking on another product. Does that work for you? Kindly, Ole Quote
Jack_mcs Posted February 8, 2006 Posted February 8, 2006 You probably need to change the path in RewriteBase / since the files are probably in a subdirectory. Something like RewriteBase /shop/. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.