Hello,
someone must have encountered this problem as well but I did not find
anything useful (at least for me) in the archives.
Sub-sitemap fragment:
-------------------------------
<map:match pattern="admin">
<map:redirect-to uri="admin/index"/>
</map:match>
<map:match pattern="admin/">
<map:redirect-to uri="admin/index"/>
</map:match>
<map:match pattern="admin/index">
<map:generate src="admin/index.xml"/>
<map:transform src="res/xsl/menu2html.xsl"/>
<map:serialize/>
</map:match>
-------------------------------
So when someone hits "http://mysite/cocoon/sub/admin" he is
redirected to the index page as expected.
But how do I get "http://mysite/cocoon/sub/admin/" to work as well?
At the moment cocoon returns a 404 error.
And is there a way to define this redirect for all requests which did
not match elsewhere?
Something like <map:match pattern=".*|.*/" type="regexp"> at the end
of the pipeline?
--
Matthias Brunner <[EMAIL PROTECTED]>
PGP FP 7862 32B3 3B75 292A F76F 5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>