Cross Context

Splash Forums Rewrite Users Cross Context

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Star01 3 hours, 46 minutes ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27427

    benji
    Participant

    Hi

    Is is possible to enable cross context support as in tuckeys urlRewriteFilter?
    The UrlRewriteFilter is on the root context. I want to redirect the path /bar to another context /foo/bar/.

    <urlrewrite use-context=”true”>
    <rule>
    <from>^/bar</from>
    <to type=”forward” context=”foo/bar”>/</to>
    </rule>
    </urlrewrite>

    With OCPSoft I tried to apply following rule:
    addRule()
    .when(Path.matches(“/bar”))
    .perform(Forward.to(“/foo/bar”).

    According to the 404 error, the forward happened, but the requested resource is not available.
    When I do a redirect instead of a forward, the rule works fine.
    It looks like the remote context cannot be forwarded to.

    Cheers,
    Benji

    #27520

    Star01
    Participant

    hello… sorry i can’t help you …

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Comments are closed.