Sid04 Posted October 15, 2005 Posted October 15, 2005 Im doing some changes and wanted to get some advise on my config file. Heres whats going down: I have my main site @ www.mainsite.com OSC is installed at www.mainsite.com/catalog I have another domain..... www.store.com Im setting up the new domain, www.store.com, as an addon domain with my webhost. Now when I go to www.store.com my OSC store comes up and the address bar stays @ www.store.com, but as soon as you click on anything it goes back to the www.mainsite.com/catalog paths. Im wanting to change my config file so that the address bar stays at "www.store.com" instead of "www.mainsite.com/catalog" if possible. Would this hurt anything? Ive seen this covered in another thread, but some of my config file simply has stuff blank. I was hoping somebody could give me the proper configure.php setup and let me know if any of the blank stuff I have now NEEDS filled in or not, and why. Thanks a ton guys :thumbsup: Here's how it is now: <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 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.mainsite.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://secure3.myhost.net/~mainsite'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.mainsite.com'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', ''); 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/mainsite/public_html/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
Sid04 Posted October 15, 2005 Author Posted October 15, 2005 Also note: The new www.store.com after adding as an addon domain links to the www.mainsite.com/catalog folder.
ecgbyme Posted October 16, 2005 Posted October 16, 2005 One thing! in your sahred SSL the second COOKIE line: define('HTTPS_COOKIE_DOMAIN', ''); should be: define('HTTPS_COOKIE_DOMAIN', 'https://secure3.myhost.net/~mainsite'); your define('HTTPS_COOKIE_PATH', ''); should have /catalog/ Don't know if these changes will help your problem. What does the layout look like in your FTP program.? I have 2 stores 1 being the new OSC I'm currently working on and they stay seperate other then links.
Sid04 Posted October 16, 2005 Author Posted October 16, 2005 ive kinda been wondering about the https cookie stuff. what difference will it make? this store has been live for a year or 2 with that blank.
Sid04 Posted October 16, 2005 Author Posted October 16, 2005 if it matters, im using a shared SSL cert
AlanR Posted October 16, 2005 Posted October 16, 2005 ive kinda been wondering about the https cookie stuff. what difference will it make? this store has been live for a year or 2 with that blank. Not a whole lot of difference in reality. The cookie can't be passed to the browser when you're in ssl mode on the shared ssl, the domain is different. The session ID will be carried in the url while a user is on the shared ssl. But just to be consistent it's better to set it IMO. If you were on the shared ssl server in all sections the cookie would be used. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)
Sid04 Posted October 16, 2005 Author Posted October 16, 2005 what about the define('DIR_FS_CATALOG', '/home/mainsite/public_html/catalog/'); line? Should I leave that alone or get rid of the /catalog?
♥Vger Posted October 16, 2005 Posted October 16, 2005 define('HTTPS_COOKIE_DOMAIN', ''); should be: define('HTTPS_COOKIE_DOMAIN', 'https://secure3.myhost.net/~mainsite'); Sorry, but this advice is totally wrong. https_cookie_domain needs to have a domain and not a url, so it should be something like: ('HTTPS_COOKIE_DOMAIN', 'secure3.myhost.net/~mainsite'); The same goes for the http_cookie_domain. Vger
Sid04 Posted October 22, 2005 Author Posted October 22, 2005 what about the define('DIR_FS_CATALOG', '/home/mainsite/public_html/catalog/'); line? Should I leave that alone or get rid of the /catalog? Anybody have any advise on this line in config? Thanks
♥Vger Posted October 22, 2005 Posted October 22, 2005 That line looks fine, providing that 'mainsite' is actually your main domain. Leave it as it is. Vger
Sid04 Posted October 22, 2005 Author Posted October 22, 2005 Vger- Thanks for the reply. Could you by chance answer my original question also as far as changes that need made to my config file?
Guest Posted October 23, 2005 Posted October 23, 2005 i see your original ? as you have two sites, one at domain a, other with no store at domain b. are you wanting domain b to work on domain a and move around? you have me confued on what you want to do. if you want to move your site which has the store at /catalog to / then you need to move all the files up one level and then change the configure.php files getting rid of /catalog/
Sid04 Posted October 23, 2005 Author Posted October 23, 2005 Im not sure I can explain any better, but ill try. I dont want the physical location of my site files to move on the server. I have multiple sites but only ONE osc store. The store is at www.mainsite.com/catalog. I purchased another domain: www.store.com. This is added as an addon domain on my hosting account. It points to www.mainsite.com/catalog. So now, both www.mainsite.com/catalog AND www.store.com bring you to the OSC index page. If you go there using the www.mainsite.com/catalog everything works as it always has(all pages use the 'www.mainsite.com/catalog' URL path). If you go there using 'www.store.com', the address bar displays 'www.store.com' UNTIL you click on anything at which point it goes back to the www.mainsite.com/catalog URL. Better? Thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.