cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Brunner ...@blumenstrasse.vol.at>
Subject Trailing slashes in request
Date Tue, 19 Nov 2002 12:26:04 GMT
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 <mb@blumenstrasse.vol.at>
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message