Thank you. I ended up doing it in webpy:

urls = (
    # canonicalize /urls to /urls/
    '/(.*[^/])',
'app.controllers.public.redirect',
}

class redirect:
    def GET(self, path):
        if not web.input().values():
            return web.seeother('/' + path + '/')
        else:
            raise web.notfound()

On Nov 12, 7:50 am, Frank Smit <[email protected]> wrote:
> This might be useful for 
> you:http://redmine.lighttpd.net/projects/1/wiki/Docs:ModRewriteandhttp://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:Configuration
>
>  :)
>
> 2009/11/12 xrfang <[email protected]>:
>
>
>
>
>
> > I suggest you ask in irc:/irc.freenode.net/lighttpd... I just start
> > learning nginx, and I wonder if anyone here will answer this lighttpd
> > specific question, but ... you can wait. Good luck!
>
> > On 11月11日, 下午8时04分, Alex K <[email protected]> wrote:
> >> I just want to add that when I do lighttpd redirect with webpy app, it
> >> sends me to /my_application_path_where_the_app_is/app.py which is not
> >> the desired effect.
>
> >> On Nov 10, 3:00 pm, Alex K <[email protected]> wrote:
>
> >> > Hello,
>
> >> > Is there an easy way in lighttpd to make requests from /hello always
> >> > go to /hello/ but making sure files such as .css or .js are not
> >> > redirected?
>
> >> > Thank you,
>
> >> > Alex
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to