UrlRewrite on OC4J

11 views
Skip to first unread message

Stijn

unread,
Jun 10, 2009, 10:34:55 AM6/10/09
to UrlRewrite
Hi,

i'm using UrlRewrite version 3.2.0 in combination with OC4J.
The UrlRewrite filter is the first filter that is executed.
Our url looks like: something/something2.dhtml?
someService=applicationName.

In our urlrewrite.xml we have defined following rule:

<rule>
<name>integration with queryString</name>
<from>/something/([a-zA-Z\-0-9_/]+).dhtml(.*)$</from>
<to>/integration.do?navigation=$1&amp;$2</to>
</rule>

So every parameter that is added after the .dhtml should be added to
the /integration.do url...
But unfortunately, everything after the .dhtml is skipped...

In the urlrewrite.xml we have use-query-string=true...

Thanks for the help!

Avlesh Singh

unread,
Jun 10, 2009, 3:43:39 PM6/10/09
to urlre...@googlegroups.com
The underneath should work as expected

<rule>
  <from>/something/([a-zA-Z\-0-9_/]+).dhtml\?(.*)$</from>

  <to>/integration.do?navigation=$1&amp;$2</to>
</rule>

Notice the escaped "?" in the from section of the rule.

Cheers
Avlesh
Reply all
Reply to author
Forward
0 new messages