poisoner Posted March 16, 2007 Posted March 16, 2007 Hi everyone, I need some help & advice here. I've at long last finished my first ever osCommerce store which I'm really pleased with. The problem I have is I've pointed my domain name www.alsgym.co.uk to my osCommerce directory at www.mightyoak.co.uk/store, but the category links etc aren't hierarchical :'( In other words where I'd want the address to be (for example) www.alsgym.co.uk/webpage.html they are still www.mightyoak.co.uk/store/webpage.html This has stumped me, I tried messing with the settings in the configure.php files, but just managed to spazz up the website & lose all the images etc - any ideas? Thanks in advance Al
poisoner Posted March 19, 2007 Author Posted March 19, 2007 Thanks for your reply! Here's my main includes/config <?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.mightyoak.co.uk'); // 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.mightyoak.co.uk'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/store/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/store/'); 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', '/kunden/homepages/36/d129703868/htdocs/mightyoak/store/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'db586.oneandone.co.uk'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'username'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'db161266584'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> This is my admin/includes config <?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.mightyoak.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.mightyoak.co.uk'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/kunden/homepages/36/d129703868/htdocs/mightyoak/store/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/store/admin/'); // absolute path required define('DIR_FS_ADMIN', '/kunden/homepages/36/d129703868/htdocs/mightyoak/store/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/store/'); // absolute path required define('DIR_FS_CATALOG', '/kunden/homepages/36/d129703868/htdocs/mightyoak/store/'); // 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/'); // define our database connection define('DB_SERVER', 'db586.oneandone.co.uk'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'username'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'db161266584'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> I've also got another problem which may be linked to the config files... I used the Ultimate SEO config which creates .html pages and it was working fine, I've now noticed that it's started appending all the session ID (e.g. ?osCsid=6065fe661687a0b34057f01f93b5a75d) which it wasn't doing before - not good for google methinks! Would this be related to pointing to the new domain name do you think? Cheers Al
vasttech Posted March 19, 2007 Posted March 19, 2007 That's because everything is pointed to http://www.mightyoak.co.uk/store/ If I understand what you are asking to do is have it ignore the /store/ part of the URL and just use your domain name, correct? What is happening is /store/ is a subdirectory of your domain. Therefore, even if you point the domain name to it, it is still a subdirectory of the domain. If so, just install your store in the root of the domain instead of the /store/ directory it will resolve your problem. For a more complex solution you could do some mod_rewrite, but that would get into a whole other realm :)... osCommerce Knowledge Base osCommerce Documentation Contributions
poisoner Posted March 19, 2007 Author Posted March 19, 2007 Hi Jeff, Thanks for your reply - no that's not the problem I've now launched my site & pointed the domain name www.alsgym.co.uk as a TLD The problem is that the links in the store don't reflect this For example, instead of being www.alsgym.co.uk/product.html They are still www.mightyoak.co.uk/store/product.html I've tried changing the config files with some help, and manages to get the Information pages to work (shipping etc) but the Categories pages (the shop!) went to 404 - page error
Jack_mcs Posted March 19, 2007 Posted March 19, 2007 Have you changed the path in the .htaccess file? Jack 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
vasttech Posted March 19, 2007 Posted March 19, 2007 Ah, missed the two different domain names there. When you forward a domain (i.e. your www.alsgym.co.uk domain) to another domain (the http://www.mightyoak.co.uk/store/ domain), that domain will always show in the browser window. Everything getting pointed to the old domain name is now forwarding to the new domain name so it is just redirecting and in theory doesn't have anything to show. The only way to keep the original domain name is to frame the forward. In other words, put your store within a single frame on a page of the original domain. Or you could do some sort of mod_rewrite again, but that would be harder and depending on your host not allowed. Hope that helps. osCommerce Knowledge Base osCommerce Documentation Contributions
poisoner Posted March 21, 2007 Author Posted March 21, 2007 Ah, missed the two different domain names there. When you forward a domain (i.e. your www.alsgym.co.uk domain) to another domain (the http://www.mightyoak.co.uk/store/ domain), that domain will always show in the browser window. Everything getting pointed to the old domain name is now forwarding to the new domain name so it is just redirecting and in theory doesn't have anything to show. The only way to keep the original domain name is to frame the forward. In other words, put your store within a single frame on a page of the original domain. Or you could do some sort of mod_rewrite again, but that would be harder and depending on your host not allowed. Hope that helps. Hi Thanks for the replies, managed to do it via the config files in the end (with some help) It's all working at www.alsgym.co.uk I've got to try to get rid of the sid at the end of the html now though...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.