pls urgent help on how to set up the to rule

5 views
Skip to first unread message

ErwinP

unread,
Mar 21, 2012, 1:51:19 PM3/21/12
to UrlRewrite
Hi, i have a rule like so:


<rule>
<note>
</note>

<from>psd_erl_13.gif</from>
<to type="forward">psd_erl_13.gif</to>
</rule>

so this rule matches on any context path that has psd_erl_13.gif
(i.e. docs/psd_erl_13.gif, guide/psd_erl_13.gif, etc.)
from the trace i can see that either the /doc or /guide paths are
added to psd_erl_13.gif in the forwarded to:

[#|2012-03-21T13:44:12.888-0400|INFO|glassfish3.0.1|
javax.enterprise.system.container.web.com.sun.enterprise.web|
_ThreadID=24;_ThreadName=http-thread-pool-8080-(1);|PWC1412:
WebModule[/sst]
ServletContext.log():org.tuckey.web.filters.urlrewrite.RewrittenUrl
TRACE: forwarded to /docs/psd_erl_13.gif|#]

but if i want to forward it to say /serviceprofile/docs/psd_erl_13.gif
how do i set this up in the to rule? can i set a variable for
serviceprofile?


thank you very much. your feedback is greatly appreciated. thanks


and i'd like to forward it to /serviceprofile/{either doc or guide}/
psd_erl_13.gifpsd_erl_13.gif

from the trace: psd_erl_13.gif
Reply all
Reply to author
Forward
0 new messages