cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Williams" <j...@ennui.co.za>
Subject Re: web.xml listing="false" does not work
Date Fri, 12 Sep 2003 13:25:04 GMT
> But despite this we are still getting directory listing in case the
user
> enters URL with slash at the end.

Are you sure that your sitemap for <application> does not include
something like:
<map:match pattern="">
    [some instruction to give a directory listing]
</map:match>
You can prevent the listing problem by redirecting the request by addng
the follwing to your sitemap for <application>

<map:match pattern="">
    <map:redirect-to
uri="<the-page-that-should-be-displayed-when-url-ends-with-slash>"/>
</map:match>

If you only have a cocoon level sitemap then include this:
<map:match pattern="application">
    <map:redirect-to
uri="application/<the-page-that-should-be-displayed-when-url-ends-with-s
lash>"/>
</map:match>






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


Mime
View raw message