This works, unless you have more than one controller. I found the following slice has been updated, perhaps this could be adapted.
http://www.web2pyslices.com/main/slices/take_slice/41 The downside is that it still requires adding each controller that you create to be added to the list. Is there a way to use routes to say something like "if it is not a web2py controller, then send it to this controller" but in web2py way of doing things (meaning not having to edit routes.py if you want to add a new controller)? -Thadeus On Sun, Feb 7, 2010 at 1:07 AM, mdipierro <mdipie...@cs.depaul.edu> wrote: > This may do it > > routes_in=[('/(?P<anything>\w+)','/myapp/page/$anything')] > > On Feb 7, 12:05 am, weheh <richard_gor...@verizon.net> wrote: >> I'm serving up a bunch of pages via a crm-like function that makes for >> url's that look like this: >> >> http://mydomain.com/myapp/page/index/page_name >> >> and I want to reduce this to: >> >> http://mydomain.com/page_name >> >> Anybody know a simple routes.py that'll do that? I've tried a bunch of >> things but I'm stumped. Thx. > > -- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this group, send email to web...@googlegroups.com. > To unsubscribe from this group, send email to > web2py+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/web2py?hl=en. > > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.