If you use the parameter-based rewrite system to set a default app, controller, and function and specify the list of available functions in the default router, then in http://yourdomain.com/code/shortname, code and shortname will be interpreted as request.args[1:2], with the request being routed to the default app, controller, and function.
Anthony On Wednesday, May 30, 2012 1:20:00 AM UTC-4, Annet wrote: > > Hi Anthony, > > Thanks for your reply. I considered a similar solution, but stranded on > the idea that the code replacing the '...' in the url are in place of the > application name. Isn't that right? > > I thought of catching the code in place of the '...' in the routes.py > file in the web2py base folder, but I couldn't figure out how to rewrite > the url. > > > Best regards, > > Annet. >