- Move all CS-Cart files to the new desired directory on the server.
- Open the config.php file in this new directory.
- Find the following part of code there:
// Host and directory where cs-cart is installed on usual server
$cscart_http_host = 'www.your_domain.com';
$cscart_http_dir = 'your_current_directory';
// Host and directory where cs-cart is installed on secure server
$cscart_https_host = 'www.your_domain.com';
$cscart_https_dir = 'your_current_directory';
and replace your_current_directory with the name of the directory where you moved CS-Cart files to.
- Save the file.
- If the SEO addon is enabled for your CS-Cart, open the .htaccess file located in the root directory of your CS-Cart installation.
- Find the following line of code there:
RewriteBase /subdirectory
and replace /subdirectory with the directory path to which you have moved CS-Cart files. For example, if your store URL was http://www.domain.com/store and you changed it to http://www.domain.com/new_collection/shop, the path will be /new_collection/shop .NOTE: If you move your CS-Cart installation to the web root directory the line of code above should look like this:
RewriteBase /
- Save the file.
Moving CS-Cart installation to another server