Category: X-Cart Tutorials
Posted: Feb 2, 2010
Comments: 1 [
Read/
Post]
Synopsis: By default x-cart installs to an xcart folder, which is great advertising for x-cart, but not so great for you; for security and to keep information from competitors, you do not want to advertise your software. This tutorial will assist you in moving your store directory.
By default x-cart installs to an xcart folder, which is great advertising for x-cart, but not so great for you; for security and to keep information from competitors, you do not want to advertise your software. This tutorial will assist you in moving your store out of the xcart folder, and moving it to root (alternatively you could change the instructions accordingly to change to a different subfolder).
Follow the instructions for your specific x-cart version:
X-Cart 4.1.x
- Begin by backing up your files and your database
- Be sure that no files in your root directory have names similar to those in your x-cart directory, and then move all of your x-cart files to the root directory.
- Open up your config.php and find: $xcart_web_dir ="/xcart";
- Change it to: $xcart_web_dir ="";
- Reupload your config.php
- To preserve your old links and search engine positions, you will want to redirect your old links to your new links, you can do this with the following code in an .htaccess file (if your server supports it). Be sure to substitute your domain name:
RewriteEngine On
RewriteRule ^xcart/(.*)$ http://www.example.com/$1 [R=301,L]
Other X-Cart Versions
- Begin by backing up your files and your database
- If you have images in a file system (instead of the database) use your admin section to move images back to the database in "Images Location"
- Be sure that no files in your root directory have names similar to those in your x-cart directory, and then move all of your x-cart files to the root directory.
- Open up your config.php and find: $xcart_web_dir ="/xcart";
- Change it to: $xcart_web_dir ="";
- Reupload your config.php
- If you had previously stored images in a file system (instead of the database) use your admin section to move images back to the file system in "Images Location"
- To preserve your old links and search engine positions, you will want to redirect your old links to your new links, you can do this with the following code in an .htaccess file (if your server supports it). Be sure to substitute your domain name:
RewriteEngine On
RewriteRule ^xcart/(.*)$ http://www.example.com/$1 [R=301,L]