Portal Home > Knowledgebase > X-Cart > General questions > How to change x-cart web-directory?
1. Rename the current x-cart directory.
Or if you want your cart to be shown in the root, i.e. www.example.com/home.php, you should move the x-cart files to the root folder on the server.
2. Update config.php file (it is located in the root x-cart folder). You should alter this variable
$xcart_web_dir ="/[dir]";
where [dir] is the current x-cart folder.
If you just changed the name of the folder, you should insert the new name in [dir].
If you moved the files to the root, change the string thus
$xcart_web_dir ="";
NOTE: For versions 4.0.x and lower. If the x-cart images are stored in the file system, you should move them to the database before changing the directory.
Images storage is defined in the admin back end, "Images Location" page.
Add to Favourites
Print this Article