You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Mato Mira, Fernando" <Fe...@dialog.com> on 2003/06/12 12:41:58 UTC

How to redirect this?

Hello,

  I have a matcher for customized logins, if a resource is not found, I want
to redirect to the standard login processing:

  <map:resource name="Standard Login">
    ...
  </map:resource>

  ...

  <map:match pattern="dialog/login">
    <map:redirect-to resource="Standard Login"/>
  </map:match>

  <map:match pattern="*/login">
    ... act if resource found ...
    <!-- else -->
    <map:redirect-to uri="dialog/login"/> 
  </map:match>

However, this does not work. If for the uri foo/login the resource is not
found,
it redirects too foo/dialog/login, not to dialog/login. Using absolute uri
path is out of the question,
as this is in a subsitemap. And I cannot redirect to the resource, as I need
to rewrite the uri, not
keep using the original one.

Thanks

--
Fernando D. Mato Mira       matomira@acm.org         
Thomson Dialog
www.dialog.com


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