On Dec 5, 2007 6:13 AM, Benoit Chesneau <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> How can I have url ending with or without '/' going to the same
> Class ? Is there a "simple" way ?

add the following to the beginning of urls.

"/(.*)/", "redirect",

and have the following class to handle those urls.

class redirect:
    def GET(self, path):
        web.seeother('/' + path)

--~--~---------~--~----~------------~-------~--~----~
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