Improve your X-Cart SEO with a simple DirectoryIndex
Thursday, February 7, 2008
X-Cart by default loads a doorway page using an index.html file. The index.html file then links to index.php, and the index.php then does a 301 redirect redirect to home.php which loads your x-cart store. A much better setup from an x-cart SEO position, is to simply load home.php when your domain name is entered as a url.
You can accomodate this by changing your x-cart directory index to home.php. If you are on a server that supports .htaccess, you can use this code in your .htaccess file to set your directory index:
DirectoryIndex home.php index.html index.php
This DirectoryIndex is even more useful when used with our x-cart seo links mod, Custom Dynamic SEO Links for X-Cart. CDSEO for X-Cart consolidates your main page and google page rank under one url (your domain name) by changing references to home.php to point to your domain path.