Skip to content


Strip out jsessionid from URL using Tuckey URL Filter

JSESSIONID is automatically appended to every encoded URL when you start a struts application session. This is very useful as it could keep the user’s cookies off but it really cut seo rankings.

Using Tuckey’s url filter is it possible to strip out every jsessionid using this rule for urlrewrite.xml

<outbound-rule>
<name>Strip URL Session ID</name>
<from>^(.*?)(?:\;jsessionid=[^\?#]*)?(\?[^#]*)?(#.*)?$</from>
<to encode="false">$1$2$3</to>
</outbound-rule>

  • Share/Bookmark

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Posted in Java, Programming. Tagged with , , , .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.