Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

How Do I Move OSCommerce Site To Main Directory???


Recommended Posts

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:




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

Link to comment
Share on other sites

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:




Then you need to change every instance of 'shop/' to '/' in those files.


 define('DIR_WS_HTTP_CATALOG', '/shop/');
 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?

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...