Session IDs, referral codes and other query strings – Designed to be Found – Part 11

0 Comments 29 October 2009

Session IDs, referral codes and other query strings

Exactly as explained in terms of canonicalization and consistency, having more than one URL that points to the same resource will cause issues. One character of difference to a URL, even if only in a query string appended to the end, or in capitalization, may be seen as an entirely different URL to a search engine.

Session IDs in particular make a site into a virtual bottomless pit to a search spider.  It is designed to record and index each individual URL as its own entity, but a session ID in that URL will always lead to problems.

Session IDs cause problems for users too, and I have lost count of the number of times I have seen users pass URLs on to others via email, forums, etc. that contained a query string for a session that would expire before most ever found the link.

Avoid session IDs in URLs whenever possible, or at the very least, prevent them being indexed by search engines. The same treatment should be applied to query strings used to identify referrers, etc. Use a 301 redirect so that the spider is told not to index the URL with the query string (potentially attributing search traffic to some other campaign and throwing off all tracking attempts) and is instead given the primary (‘clean’) URL.

Look out for part 12 next week…

You may also like

If you enjoyed this article, please consider sharing it! or ask Fresh Egg a question

Join the conversation tell us your thoughts!

Blog Authors

Tony Goldstone
John Pring
Steve Teece
Modi
dara
Alex Murray
Duncan Heath
Allan Bisset
Ed Vinicombe
Ben
Lee
Ryan Ogilvie
Saurav Rimal
Joe Johnson
Ollie
Adam Stafford
Mark Cronin
Nikki Rae

Recent Comments

  • GIJoe85 RT @PaulChaloner: Online Advertising Regulation – What does...
  • PaulChaloner Online Advertising Regulation – What does it mean for...
  • kaiserthesage SEO Google Gripes http://t.co/KJywhDB via @freshegg...
  • SauravRimal SEO Google Gripes (August 2010) http://bit.ly/cHhq3N...
  • alexdmurray RT @freshegg: Fresh Egg’s Latest – Cyber...

Photos on flickr