Wondering how we can help? Call us! 1.604.477.7049 / M-F 8am-4pm PST
X-Cart Mods, X-Cart Addons - WebsiteCM
Did you know...
WebsiteCM Product Pages now all have Change Logs and related Knowledge Base articles in new Dynamic Product Tabs
X-Cart Excellence eZine
Subscribe for proven tips and special discounts!
Cart is empty
X-Cart Services
X-Cart Customization X-Cart Optimization X-Cart Upgrades Non X-Cart Services
X-Cart Mods
Recommended Packages Volume Discount Must Have Mods Reseller Program
Filter Mods By Version
Mods By Purpose
X-Cart Administration X-Cart Packages X-Cart Appearance X-Cart Conversion X-Cart Customers X-Cart Integration X-Cart Marketing X-Cart Navigation X-Cart Search X-Cart SEO X-Cart Shopping Feeds X-Cart Upselling X-Cart Templates
Mods By Firm
WebsiteCM BCSE Cart-Lab Firetank

WebsiteCM on Twitter

Move X-Cart to Root

Move X-Cart to Root
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]

Comments on Move X-Cart to Root



KingPimp Apr 2, 2010
Thanks for the tutorial..... having just followed this, I thought I would add that I also had to change this in .htaccess for CDSEOPro:

RewriteBase /xcart/

to:

RewriteBase /


Share comments

Your Name: *
Comments: *
Please Note: HTML Markup will be automatically removed.
The ability to post urls has been disabled by the site administrator.
Live Help

Site Map