Jonathan Linczak wrote:

On May 6, 2005, at 3:43 AM, Jann Forrer wrote:

On Wed, 4 May 2005, Linczak, Jonathan W. wrote:

I think this pipeline needs to be changed to something like

<map:pipeline>
  <map:match pattern="**/*/">
        <map:redirect-to uri="../{1}.html"/>
      </map:match>
 </map:pipeline>

because it currently doesn't make sense at all and is basically
useless. Please note that my suggestion isn't totally generic,
but I hope it explains what I mean.


I think I understand what you're saying here, and I would agree
that this probably makes more sense than the current pipeline,
but I guess it still doesn't solve my problem.  It sounds like
to get exactly what I want, I'll either have to do something
different in my Apache config to rewrite the URLs, or I'll have
to change the way Lenya works so that URLs are displayed as
folders and never as HTML files.  Hmm, I'll experiment first
with rewrite rules and see how easy/difficult this will be.


I am not sure whether this will help but for one of our publication we use
the following RewriteRule


    RewriteRule      ^/(.+)/$ $1.html [R]

The client can therefore use url's like

http://www.ori.unizh.ch/institute/open/ which will be rewritten to
http://www.ori.unizh.ch/institute/open.html forwarded to the servlet
engine.


Hi Jann,

Indeed, that's what I was after and it did work. But the downer is that the navigation/sitemap is still setup with the pages as .html, which is no fun.


maybe we could make this configurable within the XSLT or sitemap or publication.xconf

I think we cannot just change it because it would break backwards compatibility.

Ideally, one URL to the page would be what I'm after. It's a temporary solution, but I would love to be able to have some sort of mechanism in Lenya to choose whether I want the current URL scheme or the scheme I have been mentioning above.


me too

Michi


Jon


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




--
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                        [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to