pichou2005 Posted August 13, 2008 Posted August 13, 2008 Hello, I have installed my store in the "catalog" folder. When i want to go in the store i need to use the address www.mywebsitename.com/catalog Is there something to do for being able to go to the store with the address www.mywebsitename.com instead? Maybe the problem is in the "configure.php" files but i don't know how to correct it. If the problem is effectively in these files, whall i need to restart the installation? Here is what i have in the "configure.php" files: /catalog/admin/includes/configure.php define('HTTP_SERVER', 'https://www.mywebsitename.com'); define('HTTP_CATALOG_SERVER', 'https://www.mywebsitename.com'); define('HTTPS_CATALOG_SERVER', 'https://www.mywebsitename.com'); define('ENABLE_SSL_CATALOG', 'true'); define('DIR_FS_DOCUMENT_ROOT', '/home/content/x/x/x/xxxxxxxx/html/catalog/'); define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', '/home/content/x/x/x/xxxxxxxx/html/catalog/admin/'); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', '/home/content/x/x/x/xxxxxxxx/html/catalog/'); 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/'); /catalog/includes/configure.php define('HTTP_SERVER', 'http://www.mywebsitename.com'); define('HTTPS_SERVER', 'https://www.mywebsitename.com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.mywebsitename.com'); define('HTTPS_COOKIE_DOMAIN', 'www.mywebsitename.com'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/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', '/home/content/x/x/x/xxxxxxxx/html/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Any help will be appreciated. Thanks!
ELnew Posted August 13, 2008 Posted August 13, 2008 You could essentially just install it in your root folder, not a separate catalog folder. Honestly it makes it easier to have it the way you have it(because it makes adding contributions difficult at times) my only suggest is to just redirect the link in your hosting cpanel. So if your store link is www.yoursite.com/catalog Redirect www.yoursite.com => www.yoursite.com/catalog so if they type.. www.yoursite.com it will work and just redirect towww.yoursite.com/catalog and...like I said you'll find "Redirects" in your hosting companies cpanel they use. FOR EXAMPLE..... go to my site www.eleatherline.com and watch how it redirects....
pichou2005 Posted August 13, 2008 Author Posted August 13, 2008 Hello Elnew, Thank you very much for your help. Using a redirect from cpanel is a good idea but unfortunately, it is not possible because i already have an SSL installed. Maybe can i use .htaccess file to redirect my root? I will check if it's possible.... If someone have another idea, please do not hesitate to let me know. Thanks again!
ELnew Posted August 13, 2008 Posted August 13, 2008 Oh SSL does change things....when does it expire?
satish Posted August 13, 2008 Posted August 13, 2008 I recommend a reinstall. A redirect will have catalog in url. For seo its harmful. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
pichou2005 Posted August 13, 2008 Author Posted August 13, 2008 Hello Satish, Thanks for your help. Since i cannot modify the root to my store because SSL is installed, i will need to reinstall the store in the root "www.mystore.com/" instead of "www.mystore.com/catalog" ? For seo its harmful. What "seo" means? Thanks!
pichou2005 Posted August 14, 2008 Author Posted August 14, 2008 I want to let you know that my problem is fixed. :D Summary of the problem: My store was installed in the catalog folder and the SSL already installed prevents a redirect of "www.mystore.com/" to "/ www.mystore.com / catalog" Solution: 1. Copy the entire contents of the catalog folder at the root of the domain (www.mystore.com/catalog/ *.* to www.mystore.com/) 2. Modify the references of "/catalog" to "/" in the 2 following files: / admin / includes / configure.php / includes / configure.php That's it ... And it works great! Note: If you use this solution, please be sure to use a copy of your files at the new location (do not move your files) and rename the folder catalog to make your tests. When you are sure that everything is working well, you can delete the catalog folder. Many thanks to the persons who helped me!
satish Posted August 14, 2008 Posted August 14, 2008 What "seo" means? search engine optimization. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.