Thumdar Posted October 23, 2006 Posted October 23, 2006 I installed an OSCommerce site on my domain and followed it's default setup. When this happened, it put all the files in this directory: mydomain.net/shop/ Well, I'm ready to publish the site now but do not know how to do it. With my html sites I could just move the files to the main directory and update links, but php seems more difficult. I'm concerned if I just move all files up to the main directory I will break the links with my database. Is there a way to just move the main directory index.php file to the default domain directory and change it's code to point to the mydomain.net/shop folder? That way I could just leave everything but that one file as it currently is. Hope to hear back soon. Boss is ridin' me on a Sunday night! :o
ddp Posted October 23, 2006 Posted October 23, 2006 OK firstly this question has been asked and answered many times on the forums here. To get better results from searching the forums try this link. Basically all you need to do is move all you pages to the root and to edit two files: /includes/configure.php /admin/includes/configure.php Then you need to change every instance of 'shop/' to '/' in those files. e.g. change: define('DIR_WS_HTTP_CATALOG', '/shop/'); to: define('DIR_WS_HTTP_CATALOG', '/'); That's it. Backup before making changes. Backup before making changes! Backup before making changes!! You did do a backup? eh?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.