Let's say I scrapped my old wordpress installation and I put the following directories in /public (sinatra application)

```
2006        2008        2010        category    my-work
2007        2009        archives    tag

```

The year directories go down in this format:

/year/month/day/title-of-post/

Problem 1:
I can get /year/month/day/title-of-post/index.html to load a page but I want to be able to load /year/month/day/title-of-post/ to load a page without having to type index.html at the end.

Problem 2:

I want to be able to type /archive and get a `<li><a href="path-to-archived-post">post title</a></li>` of every subdirectory mentioned above. How do I do this?