yes, in this case i'm hosting a single app.
I'll do it that way.
thanks Massimo.

On Thu, Sep 23, 2010 at 3:10 PM, mdipierro <mdipie...@cs.depaul.edu> wrote:

> If you host a single app the easy way is saying in routes.pt
>
> routes_in=[
>  ('/bio/$anything', '/arritmia/bio/$anything')
> ]
>
> routes_out=[
>  ('/arritmia//bio/$anything', '/bio/$anything')
> ]
>
> On Sep 23, 6:34 am, Albert Abril <albert.ab...@gmail.com> wrote:
> >  .
> >
> > I have in the root of web2py the routes.py configured with that:
> >
> > default_application = 'arritmia'    # ordinarily set in base routes.py
> > default_controller = 'default'  # ordinarily set in app-specific
> routes.py
> > default_function = 'index'      # ordinarily set in app-specific
> routes.py
> >
> > Ok, so when i access to the main url, web2py redirects me to
> > localhost:8000/arritmia/default/index , right?
> >
> > Now i wanna define that, when I access:
> >  http://localhost:8000/bio/
> > It should redirect me to:
> >  http://localhost:8000/arritmia/bio
> > where bio is a controller+view into arritmia app.
> >
> > But i wanna to define it, in routes.py at the root of the application.
> >
> > How i define that?
> >
> > Should i config routes_app in routes.py at the root of the web2py dir?
> >
> > Thanks.
>

Reply via email to