Search Optimization
  Home arrow Search Optimization arrow Page 2 - Preventing Duplicate Content on an E-C...
SEO Chat Forums  
Choosing Keywords  
Google Optimization  
Link Trading  
MSN Optimization  
Search Engine News  
Search Engine Spiders  
Search Optimization  
Web Directories  
Website Marketing  
Website Promotion  
Website Submission  
Yahoo Optimization  
SEO Tools
Adsense Calculator
AdSense Preview
Advanced Meta-Tags
Alexa Rank Tool
Check Server Headers
Class C Checker
Code to Text Ratio
CPM Calculator
Domain Age Check
Domain Typos
Future PageRank
Google Dance
Google Keywords
Google Search
Google Suggest
Google vs Yahoo
Indexed Pages
Keyword Cloud
Keyword Density
Keyword Difficulty
Keyword Optimizer
Keyword Position
Keyword Typos
Link Popularity
Link Price Calculator
Meta Analyzer
Meta Tag Generator
Multiple Link Popularity
Page Comparison
Page Size
PageRank Lookup
PageRank Search
Robots.txt Generator
ROI Calculator 
S.E. Comparison 
S.E. Keyword Position 
Site Link Analyzer 
Spider Simulator 
URL Redirect Check 
URL Rewriting 
Mobile Linux 
APP Generation ROI 
IBM® developerWorks 
SEO Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
SEARCH OPTIMIZATION

Preventing Duplicate Content on an E-Commerce Site from Session IDs
By: Codex-M
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 4
    2009-04-28

    Table of Contents:
  • Preventing Duplicate Content on an E-Commerce Site from Session IDs
  • Robots.txt and Sitemap (XML, dynamic and static versions)
  • Oscommerce Admin Configuration
  • The Link Rel Canonical Solution

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Preventing Duplicate Content on an E-Commerce Site from Session IDs - Robots.txt and Sitemap (XML, dynamic and static versions)


    (Page 2 of 4 )

    The easiest and fastest way to fix the Googlebot indexing session ID issue is to block session IDs in the robots.txt file. This is recommended only at the launch stage of your website. The primary reasons are:

    • Googlebot still has to find canonical URLs in your site for the first time, so it is wise to give them crawling directions, such as blocking those session IDs and providing them a list of canonical URLs in a sitemap or in navigational links. 
    • If you do this at a later stage of your website (when Googlebot is already indexing thousands of URLs with session IDs), you will probably lose some traffic you have from search engines.

    Using robots.txt, we can formulate the syntax that will prevent the robot from crawling session ID URLs.

    In our previous example, the Oscommerce session ID is in the form of:

    http://www.mywebsite.com/buymymusic.html?osCsid=5c3g1

    And the robots.txt syntax to block this URL will now be:

    User-agent: *

    Disallow: /*osCsid

    Sitemap: http://www.mywebsite.com/sitemap.xml

    Remember the important rule for robots.txt: it should be uploaded to the root directory of the site server. Read more about robots.txt in this article

    What about a sitemap.xml file? This file also needs to be updated and uploaded to your site server root directory. Below are the important rules when selecting the URLs to be listed in the sitemap.xml file:

    • It should not contain session IDs.
    • It should only list the canonical URLs (do not include URLs that contain content that duplicates or is similar to the content at canonical URLs).
    • It should only list the most important pages in your site (excluding low value pages, such as thousands of Contact Us pages).
    • All URLs listed in sitemap.xml file should not be blocked in robots.txt

    The dynamic version of the sitemap, such as sitemap.php or sitemap.asp, should not list URLs containing session IDs.

    More Search Optimization Articles
    More By Codex-M


       · As eCommerce consultants, we've also recognized a few other sources of duplicate...
       · Nice article thanks. Those query sort (SORT=) variables in ecommerce sites is really...
       · Although slanted towards OsCommerce, the article was informative, however did not go...
       · The important thing is to block those in robots.txt if you can see clearly see a...
     

    SEARCH OPTIMIZATION ARTICLES

    - Implementing Six Sigma Methodology for SEO
    - Introducing Six Sigma Methodology for SEO
    - What is Mobile SEO?
    - Using Lynx for SEO Analysis
    - Mastering Lynx (Open Source Text Browser) fo...
    - More Blogging Tips: Cooking with Gas
    - Blogging Tips from Julie and Julia
    - SEO Essentials: the Proper Web Server and Pl...
    - Steps to Higher Rankings and Traffic
    - Building Linkable Pieces and Titles
    - Page Rank Sculpting
    - Page Rank Optimization
    - ClickTale Review
    - Final Issues: Moving Blogger to WordPress wi...
    - Avoid the Mistakes New SEOs Make



     



    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek