beats Posted January 5, 2010 Share Posted January 5, 2010 Hi there, i have posted on this forum before and have got some great feedback to get me started on my way with OS and answers for my queries with using os-commerce, the issue i have now is that i have configure my site and for using os commerce, however on my hosting solution powweb i had my folder set up as CG Styling and i had everything configured on this path, as i was pointing my domain to this folder it would not take it and the issue was there was a space in the folder name so i had to rename the folder CG_Styling, however this has now knocked everything out of sync with OS-c i have went in to the 2 configure PHP files (catalog/admin/includes/configure.php) (catalog/includes/configure) and updated the change from CG Styling to CG_Styling but this has not resolved are you able to advise where else i would need to change if the root folder has been renamed, thank you in advance if your are able to assist Link to comment Share on other sites More sharing options...
MrPhil Posted January 5, 2010 Share Posted January 5, 2010 All references to your domain and directory structure should be in the configure.php files. Check to see if you have more than two of them -- such as "local" versions. dir /s configure.php will help find all such files on a Windows server or PC, and ls -R configure.php on Linux. The "grep" tool (comes with Linux, download for free for Windows) is fantastically useful for finding strings (such as a domain name) within a whole bunch of files. I don't know if and where any complete domain name or directory structure is stored in the database. Hopefully everything there is just a relative path. Also remember to clear out your browser's cache so that it's forced to get a fresh copy of your pages. Link to comment Share on other sites More sharing options...
beats Posted January 6, 2010 Author Share Posted January 6, 2010 hi Mr Phil thank you kindly for your're reply, unfortunately still no further forward with this, i have checked and i don't have any files stored within the local folder, and i cleared my cache also. A bit more info one my situ, my site cgstyling.co.uk sits with a sub-domain of a directory on my hosting solution with the main domain being rmcustomupholstery.com, this domain is referenced in the 2 configure files that i mentioned in the first post, so when i changed the domain over to show the cg domain it still pick up the path with rmcustomupholstery and never picked it up, i reverted the changes back and logged into the admin section and have done some digging and came across the server information within the admin section and there are a few things i came across that i don't know how to change as i have crossed reference them and the don't appear to be in the config files these are ENV "HTTP_HOST" _ENV["HTTP_REFERER"] _ENV["SERVER_NAME"]_ENV["SCRIPT_URI"] do you know where i change these attribute so that i can get it to point to the correct site again any help would be kindly appreciated beats Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted January 6, 2010 Share Posted January 6, 2010 A bit more info one my situ, my site cgstyling.co.uk sits with a sub-domain of a directory on my hosting solution with the main domain being rmcustomupholstery.com, That is completely not right. I don't think you completely understand what is really happening. You domain in the config file should only reference cgstyling.co.uk and no other domain. The top half of your config file should look something like this: define('HTTP_SERVER', 'http://www.cgstyling.co.uk'); define('HTTPS_SERVER', 'https://cgstyling.co.uk'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.cgstyling.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'cgstyling.co.uk'); define('HTTP_COOKIE_PATH', '/OSC UK/oscommerce-2.2rc2a/catalog/'); define('HTTPS_COOKIE_PATH', '/OSC UK/oscommerce-2.2rc2a/catalog/'); define('DIR_WS_HTTP_CATALOG', '/OSC UK/oscommerce-2.2rc2a/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/OSC UK/oscommerce-2.2rc2a/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', '/usr/local/web/CG_Styling/OSC UK/oscommerce-2.2rc2a/catalog/'); //this line is something your host can tell you define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Your store is at http://cgstyling.co.uk/OSC%20UK/oscommerce-2.2rc2a/catalog/index.php Notice the space in OSC UK and what it does to your URL? Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
beats Posted January 6, 2010 Author Share Posted January 6, 2010 That is completely not right. I don't think you completely understand what is really happening. You domain in the config file should only reference cgstyling.co.uk and no other domain. The top half of your config file should look something like this: define('HTTP_SERVER', 'http://www.cgstyling.co.uk'); define('HTTPS_SERVER', 'https://cgstyling.co.uk'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.cgstyling.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'cgstyling.co.uk'); define('HTTP_COOKIE_PATH', '/OSC UK/oscommerce-2.2rc2a/catalog/'); define('HTTPS_COOKIE_PATH', '/OSC UK/oscommerce-2.2rc2a/catalog/'); define('DIR_WS_HTTP_CATALOG', '/OSC UK/oscommerce-2.2rc2a/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/OSC UK/oscommerce-2.2rc2a/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', '/usr/local/web/CG_Styling/OSC UK/oscommerce-2.2rc2a/catalog/'); //this line is something your host can tell you define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Your store is at http://cgstyling.co.uk/OSC%20UK/oscommerce-2.2rc2a/catalog/index.php Notice the space in OSC UK and what it does to your URL? Link to comment Share on other sites More sharing options...
beats Posted January 6, 2010 Author Share Posted January 6, 2010 hi mark thanks you kindly for the response, i have made those changes as you detailed below but if you select the below link on your post it shows you the problem i'm having, with it showing with incorrect domain and the stylesheet not picking up anything, do you mind if i post my 2 configure php files? Thanks in advance beats Link to comment Share on other sites More sharing options...
♥FWR Media Posted January 6, 2010 Share Posted January 6, 2010 hi mark thanks you kindly for the response, i have made those changes as you detailed below but if you select the below link on your post it shows you the problem i'm having, with it showing with incorrect domain and the stylesheet not picking up anything, do you mind if i post my 2 configure php files? Thanks in advance beats The problem here is that you are saying "I have made those changes" but you can't have .. e.g. the base href on your site is .. <base href="http://www.cgstyling.co.uk/CG_Styling/OSC UK/oscommerce-2.2rc2a/catalog/"> the base href is made up of just two things (ignoring https) which are .. HTTP_SERVER (in your case) = 'http://www.cgstyling.co.uk And DIR_WS_HTTP_CATALOG (in your case) = '/OSC UK/oscommerce-2.2rc2a/catalog/ That results in .. http://www.cgstyling.co.uk/OSC UK/oscommerce-2.2rc2a/catalog/ Whereas your base href is .. http://www.cgstyling.co.uk/CG_Styling/OSC UK/oscommerce-2.2rc2a/catalog/ therefore you haven't taken the advice so far given. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
beats Posted January 6, 2010 Author Share Posted January 6, 2010 The problem here is that you are saying "I have made those changes" but you can't have .. e.g. the base href on your site is .. <base href="http://www.cgstyling.co.uk/CG_Styling/OSC UK/oscommerce-2.2rc2a/catalog/"> the base href is made up of just two things (ignoring https) which are .. HTTP_SERVER (in your case) = 'http://www.cgstyling.co.uk And DIR_WS_HTTP_CATALOG (in your case) = '/OSC UK/oscommerce-2.2rc2a/catalog/ That results in .. http://www.cgstyling.co.uk/OSC UK/oscommerce-2.2rc2a/catalog/ Whereas your base href is .. http://www.cgstyling.co.uk/CG_Styling/OSC UK/oscommerce-2.2rc2a/catalog/ therefore you haven't taken the advice so far given. Link to comment Share on other sites More sharing options...
beats Posted January 6, 2010 Author Share Posted January 6, 2010 FWR/Mdtaylorlrim thanks for nudging me in the right direction, over looked the full importance of the path destination,as FWR mentioned thanks again top class beats Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.