View Single Post
  #7  
Old 03-20-2006, 06:29 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default How To Move Your Site To The Root Directory

How To Move Your Site To The Root Directory

Lets say you have your shop set up as something like this

http://www.yourdomain.com/xcart

and you would rather it were set up more like this

http://yourdomain.com/

########################################

Firstly, set all your images to be stored in the database if they are not already. This will make more sense later, stick with it......

now either by using you FTP client or via SSH copy all the files from the folder that they are currently in back to the root directory of your server. more often then not this will be called something like public_html

next up you need to open your config.php file and look for the section (not far from the top) that asks for the location of your store.

look for

Code:
$xcart_http_host ="yourdomain.com"; $xcart_https_host ="yourdomain.com"; $xcart_web_dir ="/xcart";

and change it to

Code:
$xcart_http_host ="yourdomain.com"; $xcart_https_host ="yourdomain.com"; $xcart_web_dir ="";

now go back to the images location section and set the images to store in the filesystem again.

And thats that......

you can always remove the thumbnails that are stored on the filesystem before moving your files once you have moved them to the database. This is a good way of flushing out all the old unused ones and makes sure there are no duplicates in there wasting space. They will all be replaced once you set the images to store in the filesystem again later
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote