Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moving OSC to new directory


orosanto

Recommended Posts

Posted

I initially installed OSC under on my server under mysite.com/cart just to get the feel for it and work on the initial setup. I decided that I didn't like having to type the /cart after my URL so I moved the complete directory structure as installed up one level to my mysite.com/public_html. Worked great until I noticed that any link from the main page was using everything under the /cart. I have been looking for where the LINK href or tep_href_link variables are set(I think) but to no avail. Everything is working fine as is except that I have two installations of OSC taking up space on my server. Any ideas or help? Can i just leave the index.php in the public_html and delete everything else since it's not using it.

 

Thanks,

Ed C.

Posted

You need to edit the includes/configure.php file and the admin/includes/configure.php file to look in the root not cart directory...

 

 

Mike

Posted

I tried what looked to be right but it didn't work right. I lost all pictures and formating and started to get errors at the top of the screen. The text was there.

 

The only doubt that I have is would something like

 

define('DIR_WS_HTTP_CATALOG', '/cart/') change to

 

define('DIR_WS_HTTP_CATALOG', '')

 

assuming that /cart/ is where the original install resides and everything is now in the root?

 

Thanks again

Posted

Should be...

 

 

 

define('DIR_WS_HTTP_CATALOG', '/')

 

 

Mike Spires

Posted

Many thanks Mike!! Works like a champ.

 

In addition to the two configure.php files that you mention above, I also found admin/configure.php that needed the massaging also.

 

Ed C.

Archived

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

×
×
  • Create New...