Moving CS-Cart installation to another directory on the same server

  1. Move all CS-Cart files to the new desired directory on the server.
  2. Open the config.php file in this new directory.
  3. 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.
  4. Save the file.
  5. If the SEO addon is enabled for your CS-Cart, open the .htaccess file located in the root directory of your CS-Cart installation.
  6. 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 /
  7. Save the file.

    Moving CS-Cart installation to another server

Noticed an error in the article or it is not clear enough? Any suggestions to improve it? Please let us know by filling in the feedback form. Click here.