wangchao Posted October 9, 2005 Share Posted October 9, 2005 Hi, guys, Hi, several months back, I had oscommerce installed. It is not in the root directory. It was under some subdirectory under the root. It is like http://www.esilk.biz/catalog/ As there are various SEO tips suggest to put the store in root directory rather than in subdirectory, I decided to move the complete tree structure under /catalog one level up. Now all the links are without the 'catalog' in its URL, except the links under catagories. When the mouse is on the subcategories, it still shows "http://www.myname.com/catalog/xxxx----.html. It seems the 'catalog' in these SQL related URLs cannot be removed. How I was put into this situation? Here are the steps that I followed. 1) backup the entire content under http://www.myname.com/catalog using ws_ftp, and SQL file from CPanel. 2) make a copy of this backup, and work on this copy. 3) in visual C++ IDE, search all the 'catalog' in this new copy, remove them if there are in html tags. 4) upload the changes onto the root directory of http://www.myname.com/ 5) in Cpanel, removed the redirect links to /catalog, which I set before. At the initial stage, I put the product at the directory of /catalog/images/products. Now it seems it is still referencing to the images under /catalog rather than the images one level up from the html root. It should reference to the images at /images/products while it is not. At this time, my site can be visited at both URLs, one is http://www.myname.com/, the other is http://www.myname.com/catalog with the same content in catalog directory. The trick is that I can login the admin area using http://www.myname.com/catalog/admin, while cannot login from http://www.myname.com/admin. I am a dummy with SQL scripts completely. Does this problem relate to the modification of sql script to remove the /catalog/ which was written when I was uploading product images? I went throught the backup of sql script and found only one instance of 'catalog' in it. I seems it is not related to the products. Can anyone give me suggestions that in the future I can either... A) Remove the directory of 'catalog' completely B) Keep the 'catalog' directory, with all its subdirectories deleted except the one containing the product images. Such that the catalog directory evolves into a dedicated product image directory. And I need suggestions how can i login to admin area from http://www.myname.com/admin Any suggestions are welcome. Thanks. -David Wang Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted October 9, 2005 Share Posted October 9, 2005 Hi, guys, Hi, several months back, I had oscommerce installed. It is not in the root directory. It was under some subdirectory under the root. It is like http://www.esilk.biz/catalog/ As there are various SEO tips suggest to put the store in root directory rather than in subdirectory, I decided to move the complete tree structure under /catalog one level up. Now all the links are without the 'catalog' in its URL, except the links under catagories. When the mouse is on the subcategories, it still shows "http://www.myname.com/catalog/xxxx----.html. It seems the 'catalog' in these SQL related URLs cannot be removed. How I was put into this situation? Here are the steps that I followed. 1) backup the entire content under http://www.myname.com/catalog using ws_ftp, and SQL file from CPanel. 2) make a copy of this backup, and work on this copy. 3) in visual C++ IDE, search all the 'catalog' in this new copy, remove them if there are in html tags. 4) upload the changes onto the root directory of http://www.myname.com/ 5) in Cpanel, removed the redirect links to /catalog, which I set before. At the initial stage, I put the product at the directory of /catalog/images/products. Now it seems it is still referencing to the images under /catalog rather than the images one level up from the html root. It should reference to the images at /images/products while it is not. At this time, my site can be visited at both URLs, one is http://www.myname.com/, the other is http://www.myname.com/catalog with the same content in catalog directory. The trick is that I can login the admin area using http://www.myname.com/catalog/admin, while cannot login from http://www.myname.com/admin. I am a dummy with SQL scripts completely. Does this problem relate to the modification of sql script to remove the /catalog/ which was written when I was uploading product images? I went throught the backup of sql script and found only one instance of 'catalog' in it. I seems it is not related to the products. Can anyone give me suggestions that in the future I can either... A) Remove the directory of 'catalog' completely B) Keep the 'catalog' directory, with all its subdirectories deleted except the one containing the product images. Such that the catalog directory evolves into a dedicated product image directory. And I need suggestions how can i login to admin area from http://www.myname.com/admin Any suggestions are welcome. Thanks. if you are using chemos version of SEO, the directory was defined during the install. Get out the install.html from the contribution and just replace the info for the directory to be without it. Chemo has examples for root and catalog folder install ... :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.