The Definitive X-Cart SEO Tutorial
This x-cart SEO tutorial provides an x-cart specific model
for achieving search engine success using x-cart. SEO is a vast and complicated field and
a base understanding of search engine optimization will assist you in proper
implementation. If you do not yet understand SEO jargon such as page rank, meta tags, and
link anchors, I recommend that you take the time to learn more about SEO before beginning
a search engine optimization campaign. You'll also want to familiarize yourself with
Google's Webmaster Guidelines.
Parts of this tutorial utilize the x-cart SEO mod Custom
Dynamic Search Engine Optimization for X-Cart. It's possible to implement various mods and
hacks to achieve these purposes, however CDSEO provides the needed functionality in
easy-to-install, easy-to-use consolidated software.
SEO Keywords
You need to optimize your x-cart for the words people will
use to search for the products and/or services you offer. If you optimize your site for
search terms people don't use when searching you'll have an effectively optimized site
without traffic.
Paid services such as KeywordDiscovery and Wordtracker can
assist you in knowing what people search for to find your business as well as how popular
the search term is. Google AdWords is a free service very useful for generating keywords.
An often overlooked method of determining keywords can be the most effective: Ask your
visitors! Think like your visitors, and ask others, what they would search for if they
wanted to shop for your services online. Compile a short list of your keywords and
phrases, sort them into general or page specific, and rank them in order of importance.
When optimizing your site, use your general keywords on your welcome/index page and in
your general layout. Use your page specific keywords to create content around one or two
specific keywords so that page may rank well in search engines for those keywords.
Be aware that some keywords are easier to rank well for
than others. Keyword Difficulty Checkers can be used to determined how difficult it is to
achieve high ranking for a keyword. If you find a keyword is very difficult, you'll want
to make the keyword more specific to your business.
Domain Name
Your domain name is the first step to search engine
success. Newly registered domains are often subject to what's called the "sandbox
effect" whereas new domains will not rank as well as older established sites. Unless
it's necessary to register a new domain, look to purchase a newly expired domain or try to
purchase a domain that is currently parked. Do a whois lookup on these domains to view the
date they were originally established - the older the better. Also be sure to search the
domain in the engines to determine if the url has a negative SEO history.
X-Cart Site Structure
Not all servers support .htaccess but many have different
ways of implementing the below mentioned functionality. Speak to your host for details.
By default x-cart unpacks to an /xcart/ subfolder. Prior to
installing, move these files to your root folder. If you've already installed your x-cart
to a subfolder, you can move it to root using this tutorial: Move X-Cart to Root.
Don't use both www.example.com AND example.com to access
your domain. When installing enter your domain name with the www. If already installed,
you can modify this information in your config.php. To ensure your domain can only be
accessed by www.example.com put the following code in an .htaccess file in your root
x-cart directory (change example.com to your domain and the rewrite base to your x-cart
folder):
RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST}
^example\.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
If you have an HTTPS domain that differs from your primary
domain instead use:
RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST}
^example\.com [NC] RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$
http://www.example.com/$1 [R=301,L]
X-Cart by default uses an index.html splash page, which
links to index.php, which then redirects to a / file. Instead put the following code into
an .htaccess file in your root x-cart directory to load your home page from the domain
name:
DirectoryIndex / index.php index.html
When linking to your website link to
http://www.example.com/ not http://www.example.com//, http://www.example.com/index.html
etc. Also never link back to your home page with the link anchor "Home" such as:
<a href="http://www.example.com/">Home</a>. Unless you sell homes,
this has no SEO value. Instead link using descriptive text such as: <a
href="http://www.example.com/">Keyword at Company Name</a>
When implementing your x-cart design ensure the html code
is clean and efficient ensure there are no broken links and that your HTML coding is
clean. Broken HTML tags or messy coding can have effect on the spidering of your site.
All javascript should be placed in .js files whenever
possible. To do this create an empty text file and save it as javascript.js and put your
javascript within it (don't Include the <script> or </script> tags). Upload
the file to your skin1 folder. You can then include the javascript on your page by opening
skin1/meta.tpl and placing the following code into it:
<script src="{$SkinDir}/javascript.js"
TYPE="text/javascript"></script>
Similar to javascript, all style sheets should be placed in
a css file and not included directly in the HTML Code. By default x-cart does this using
the skin1/skin1.css file. You can place additional style sheets in that file, or create a
new one and include it using:
<link rel="stylesheet"
href="{$SkinDir}/style.css">
When adding categories and determining your site link
structure, try not to make the categories too deep so that most of your pages are
accessible within 2-3 clicks at most. If it's necessary to use a deep linking category
structure, use WebsiteCM's Category Map for X-Cart to make the deep categories accessible
to search engines from the pages closer to root.
Welcome/Index Page
Ensure your welcome/index page has keyword rich text. A
very common SEO mistake with x-cart is to not use any text on the index page at all! You
can modify the text on your index page by logging into your x-cart admin section and
clicking on "Languages." Select your language type and then filter for:
txt_welcome. Modify this text according to your business and previously research keywords.
Also be sure that your title for this page is reflective of your keywords - this is one of
the most important aspects of your SEO efforts. By default x-cart uses the company name as
entered upon installation. Alternatively, you can change the language variable
"lbl_site_name" but note this text will also be used in your location
breadcrumbs. If using CDSEO Pro for X-Cart you can customize your breadcrumb using the
"lbl_site_name" variable and then customize your index page title in the
"Settings" CDSEO administration.
Search Engine Friendly URLs
X-Cart by default uses dynamic php URLs which will not be
spidered as heavily or as effectively as static URLs. X-Cart's default product provides an
"HTML Catalog" which creates static pages which are spidered better than the php
URLs, but requires a second set of pages to be created. This second set of html pages
needs to work alongside the php pages since the html pages aren't dynamic and don't
reflect the user logging in, adding products to their cart, or other dynamic
functionality. If using the html catalog I recommend that you generate it in your root
directory and ensure that the php pages are blocked using a robots.txt file to prevent
duplicate content. Alternatively, CDSEO Pro for X-Cart provides better optimized static
URLs you can customize and that function dynamically so two sets of pages aren't
necessary. CDSEO will also automatically 301 redirect the old dynamic php URLs to the
CDSEO SEO Friendly URLs to prevent duplicate content.
Page Titles, Meta Tags and Link Titles
Log into your x-cart admin section, click on General
Settings -> SEO options, and customize the general meta tag and meta descriptions. Also
set the "Page title format" to display the Product Name first. Page titles are
the most important aspect of search engine optimization and should be customized carefully
according to your keywords. After adding categories, products, manufacturers and static
pages to your x-cart, these can be customized using CDSEO Pro for X-Cart. Without CDSEO
(or customization), x-cart will not allow you to customize page titles and will only allow
meta descriptions and meta keywords for categories. Page titles ideally should be 10-60
characters, meta description should show about 200 characters, and the keyword tag should
usually be 10 words or less. It is important for there to be symmetry of these tags with
the pages content, so ensure keywords used in the title, meta tags, and link titles, are
also used in the body/content of the page. Link titles are used to describe the content of
a link to both search engines and the blind so be sure to be descriptive and concise.
Images and Alt Tags
Ensure images used in your site are named descriptively
including keywords when appropriate. Also use image alt tags similarly for each image of
importance. When adding thumbnails and/or detailed images via your x-cart admin section,
first upload them to your server using descriptive keywords and then browse for them on
your server. This will allow their original keyword descriptive filenames to be used;
otherwise x-cart renames them generically.
Descriptions/Content
Use your keywords in the text of categories, product
descriptions, manufacturers and static pages. Writing good search engine copy is a fine
art; it requires the balance of keyword location and frequency with readability:
Put keywords in <h1></h1> tags at the top of
the page but do not over-use these tags, instead use <h1>, <h2> and <h3>
tags accordingly Keep keywords to the top of page with focus on the first paragraph of
text
Use keywords at the beginning of sentences and paragraphs
Bold keywords when possible using <strong>
Internal Linking
Place links to your popular categories, products and other
pages on your front page. This will give the highest possible pagerank to those pages.
When creating hyperlinks always use descriptive anchor text!
Instead of using:
To view our x-cart SEO tutorial click here.
Use:
To view our x-cart SEO tutorial visit: X-Cart Search Engine
Optimization.
It's also beneficial to use such a link in your website
footer with a link to your index page that appears on every page of your website.
Incoming/External Linking
The more sites that link to your website, the more relevant
search engines will see your site as being and your search engine rank will increase
accordingly. If you have control over how a site links to yours, be sure it does so with
descriptive anchor text as previously described. Search engines will rank your site higher
when sites link to you and you do not link to them, as they will see your site as being
"link-worthy." If linking to external sites, link only to quality sites, as bad
sites can damage your search engine credibility and thus your rankings. Validate your
links periodically. If you want to link to a site and don't want it to affect your search
engine ranking using the nofollow tag accordingly:
<a href="http://www.example.com"
rel="nofollow">Link for Search Engines to Ignore</a>
Stay Fresh with Content
Staying fresh with content is one of the best ways to
receive incoming links, attract visitors, and increase credibility with your visitors.
Strongly consider writing articles, a blog or posting news on your x-cart.
Error Handling
Use a designated custom 404 error page that is NOT your
home page; if your home page is used as your error page search engines will associate your
index with broken links. If using CDSEO Pro for X-Cart you will have a custom error page
by default and can customize your page by specifying a url in your CDSEO admin settings.
Without CDSEO you can usually customize your file not found using an .htaccess file with
the following code:
ErrorDocument 404 /error_message.php
Site Maps
Google recommends a sitemap for your site, but recommends
that if you have more than 100 links you break the sitemap up over multiple pages.
WebsiteCM offers an X-Cart Site Map as well as an X-Cart Product Map (A-Z). If you have
less than 100 categories and products combined you can install the sitemap alone,
otherwise I recommend you install the site map and configure it to display 0 products and
install the Product Map which will break your product listing up over multiple pages.
An XML sitemap differs from a customer sitemap in that it
is a listing of your pages with ranked importance for search engines and is not used by
your customers. I recommend creating an submitting an XML sitemap for your x-cart.
Avoid Black-Hat SEO
Black-hat SEO are techniques to try and trick the search
engines to increase your rankings. These can have short-term benefits resulting in
long-term disaster including the possibility of a complete ban from search engines. Three
SEO guidelines will assist you in avoiding the penalties of black-hat SEO:
Don't ever do anything to try to artificially inflate your
rankings quickly If a change to your site is not valid for your visitors, don't do it for
the search engines When optimizing any text for SEO, don't keyword stuff or over-optimize
and instead make your search engine optimization natural to your visitors.
Copyright 2007 WebsiteCM.com |