Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Avoid jSessionid in Google search result

 
Hieu Tran
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on JSF and RichFaces with jBoss server. I want to avoid the jSession id added to the link on Google search.

I tried some solutions but not yet positive result:

- Adjusting the parameter handling on Google Webmaster Tools

- Creating a filter (1 java class and adding new filter on web.xml) to affect Google bot requests

Do you have any comment?

Note that the application needs the session id for browsers that don't accept cookies. Here I need a solution for Google to avoid show the id.

Thank you guys very much for any suggestion!
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18162
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Hieu!

I am not a SEO expert. Actually, I would hope that Google would remove the jSessionID value as part of its normal indexing function, since almost never is it going to be useful to have some stale old session identifier applied to a later access by some other person on the other side of the planet.

You might want to add some meta-information to the JSF views to make these session-related pages not indexable by Google. Then put "bookmarkable" links on your home page where Google is more likely to rate them higher. If you have problems with jsessionid appendages on those links, do brute-force raw HTML links without the JSF URL rewriting.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic