On Tue, 29 May 2001, Jason Foster wrote:
> > Thanks for the hint. The pattern of the matchers to the mount element
> > should be "sub/**". In the sub-sitemap a redirect should not include the
> > url prefix of the sub sitemap else you cannot relocate the sub sitemap
> > to another url prefix without changing all the patterns in there..
>
> But now don't you need to have two matchers in the main sitemap:
>
> <map:pipeline>
> <map:match pattern="sub/**">
> <map:mount uri-prefix="sub" src="sub/" check-reload="yes"/>
> </map:match>
> </map:pipeline>
>
> <map:match pattern="sub">
> <map:redirect-to uri="sub/"/>
> </map:match>
>
> Which means the sequence looks like:
>
> .../cocoon/sub --> .../cocoon/sub/ --> .../cocoon/sub/foobar
Well, .../cocoon/sub and ../cocoon/sub/ are two different URIs. If you'd
like to map them to be the same you'll have to use a redirect.
Giacomo
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>