You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Sean Fulton <fu...@cmu.edu> on 2005/03/24 22:17:42 UTC

Directory index

I want, for usability purposes, every 'directory' to have an 
index.html. Is there a way to achieve this? Or a way, in Lenya, to 
automatically map http://mysite.com/about/index.html to 
http://mysite.com/about.html ?

Thanks,

	Sean



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Directory index

Posted by Michael Wechner <mi...@wyona.com>.
Sean Fulton wrote:

> I want, for usability purposes, every 'directory' to have an 
> index.html. Is there a way to achieve this? Or a way, in Lenya, to 
> automatically map http://mysite.com/about/index.html to 
> http://mysite.com/about.html ?


in the case of the default publication you might want to modify the 
redirect within

src/webapp/lenya/pubs/default/publication-sitemap.xmap


   <map:pipeline>
      <map:match pattern="**/">
        <map:redirect-to uri="index.html"/>
        <!-- do the redirect differently .... -->
      </map:match>
    </map:pipeline>

HTH

Michi

>
> Thanks,
>
>     Sean
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org