tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ognjen Blagojevic <ognjen.d.blagoje...@gmail.com>
Subject Re: URL Rewrite
Date Fri, 03 Sep 2010 10:42:03 GMT
On 3.9.2010 12:02, michel wrote:
> I have been using the tuckey urlrewrite with some results, in that if I want to have
an incoming URL coming in as
> gallery/pic20 gets changed to gallery.jsp?pic=20
> But the tool bar URL gets displayed as   gallery.jsp?pic=20
> and I want to display  gallery/pic20

Just use rule, not outbond-rule:

<rule>
   <from>/gallery/pic([0-9]+)</from>
   <to>/gallery.jsp?pic=$1</to>
</rule>

-Ognjen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message