cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thorsten.scherler....@juntadeandalucia.es>
Subject Url without extensions - how to match/rewrite
Date Fri, 07 Dec 2007 12:44:23 GMT
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
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


Mime
View raw message