Hi Thorsten,
I'm not sure if I caught your problem completely, but what about
handling every request as html as long as there is no known extension, e.g.
<map:match pattern="*.jpg">...
<map:match pattern="*.gif">...
<map:match pattern="*">...
Important is that the *-matcher comes last. Or just write your own
matcher :-)
Bye,
Florian
Thorsten Scherler wrote:
> Hi all,
>
> my current client wants to navigate their website without extensions.
>
> Meaning they want to use something like:
> http://www.apache.org/dev/version-control
>
> instead of
> http://www.apache.org/dev/version-control.html
>
> The above example is working fine thanks to the httpd servers
> content-negotiation [1], but is this possible in cocoon without
> implementing every single match for every single page?
>
> I tried with the regexp matcher but could not found any pattern that
> matches the documents WITHOUT extensions to then <map:redirect-to
> uri="cocoon://{1}.html"/>.
>
> Did somebody implemented something similar or is it just not feasible
> with cocoon matches?
>
> TIA for any feedback.
>
> salu2
>
> [1] http://httpd.apache.org/docs/1.3/content-negotiation.html
>