Hi Ying,
I'm using UrlRewrite with Tomcat5.5 and it works fine.
I think there's a problem in the rule it mentions deviceCode but I don't really see the words deviceCode in the from URL.
There's a group for UrlRewrite filter http://groups-beta.google.com/group/urlrewrite I think if you post your question there it will more relevant to that group and you'll get a proper response.
-Rashmi
----- Original Message ----
From: ying lcs <yinglcs@(protected)>
To: users@(protected)
Sent: Tuesday, November 28, 2006 12:18:54 PM
Subject: UrlRewrite Rule works on tomcat 4.1.34 but fails on tomcat 5.0.28
I am using UrlRewrite filter on tomcat.
I would like to do the following:
rewrite from
http://localhost:8080/testApp?arg1=abc&arg2=def
to
http://localhost:8080/testApp/index.jsp?arg1=abc&arg=def
So i have the following rule in my urlrewrite.xml (under WEB-INF
directory)
<rule>
<from>^\?(deviceCode=.*)$</from>
<to type="redirect">%{context-path}/index.jsp?$1</to>
</rule>
Everything works in tomcat 4.1.34. But when I deploy the same webapp
in tomcat 5.0.28, url rewrite does not work.
When I enter 'http://localhost:8080/testApp?arg1=abc&arg2=def', it goes
to
http://localhost:8080/testApp/?arg1=abc&arg2=def
Can you please tell me how can I achieve the same thing in Tomcat
5.0.28?
Thank you.
---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)