aspose file tools*
The moose likes JSF and the fly likes Avoid jSessionid in Google search result Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Avoid jSessionid in Google search result" Watch "Avoid jSessionid in Google search result" New topic
Author

Avoid jSessionid in Google search result

Hieu Tran
Greenhorn

Joined: May 28, 2013
Posts: 1
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

Joined: Jun 25, 2001
Posts: 16019
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: Avoid jSessionid in Google search result