X-Cart Mods, X-Cart Addons - WebsiteCM
Did you know...
We provide a Must Have X-Cart Mods page to ensure you're making the most of your x-cart.
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 Mods
Recommended Packages 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 Firetank

WebsiteCM on Twitter

X-Cart SEO Urls: Don't slash away your X-Cart SEO Rankings

X-Cart SEO Urls: Don't slash away your X-Cart SEO Rankings
Category: X-Cart SEO
Posted: Jun 8, 2010
Comments: 2 [Read/Post]
Synopsis: Informative x-cart seo article on utilizing slashes in x-cart seo urls.

Google Webmasters recently provided a tutorial on utilizing slashes in urls: To Slash or not to slash.

If using our CDSEO for X-Cart search engine optimization x-cart mod or the default x-cart clean urls, you likely have folder urls for categories and/or manufacturers, and you may or not be utilizing slashes correctly.

Search engines will see a url with a slash as a folder, and without a slash as a file, as follows:

http://www.example.com/some-directory <- file
http://www.example.com/some-directory/ <- folder

What's more important than which method is used, is that both of these urls not be used to access the same content. Instead you want pick one url format and 301 redirect the secondary url to the primary.

I recommend using the conventional folder format as provided by CDSEO. You can then ensure that the the url without a slash is 301 redirected to the url with a slash using this code at the top of your .htaccess file:

RewriteEngine on
# Force folders to have trailing slashes
RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]

Test the url both with and without the slash at http://web-sniffer.net/ to ensure your response codes are as follows:

http://www.example.com/some-directory -> Status: HTTP/1.1 301 Moved Permanently
http://www.example.com/some-directory/ -> Status: HTTP/1.1 200 OK

You can see this working on our site by testing the following urls:

http://www.websitecm.com/x-cart-mods/x-cart-seo
http://www.websitecm.com/x-cart-mods/x-cart-seo/

Related Items


Custom Dynamic Search Engine Optimization (CDSEO) Pro for X-Cart
Must Have X-Cart Mod

CDSEO Pro for X-Cart is the definitive x-cart seo tool, allowing you custom control over your x-cart seo friendly urls, page titles, link anchors, meta keywords, meta descriptions and much more, all from an easy to use seo administration.  Even export/import your seo data to .csv for easy editing!  Also includes an XML SiteMap Generator which generates in just seconds and canonical support for duplicate content control!


Our price: $139.99 save 30%
Custom Dynamic Search Engine Optimization (CDSEO) Pro for X-Cart

xCMS - X-Cart Blogs, Information, News, Articles and more!
Must Have X-Cart Mod

xCMS for x-cart is a fully integrated, full featured content management system which with CDSEO provides search engine optimized content management for blogs, information, news, articles and more.


Our price: $119.00 save 15%
xCMS - X-Cart Blogs, Information, News, Articles and more!


Comments on X-Cart SEO Urls: Don't slash away your X-Cart SEO Rankings



John Jul 11, 2010
Thanks great mod
Alan Jun 21, 2010
Really helpful article and definitely something that I would recommend implementing as standard with an x-cart installation.

I only realised this was happening after I saw Google Webmaster Tools flagging up duplicate meta descriptions. However it wasn't really the meta descriptions that were being duplicated - it was the same page being indexed twice because of the trailing slash.

The only thing I would add to this article is to make sure the above snippet is added to your .htaccess file before xcarts clean url rewrites e.g. before:

# Clean URLs [[[

Thanks again,
Alan
www.ergofurniture.com.au/


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.



Site Map