Thanks for the answer. I should've clarified that I knew that I had to use
routes, but I'm having difficult to find the regular expression that works
for this case. I suppose I have to use pattern based system, because in
addition, I still want to handle "init" as the default application,
"default" as the default controller, and "index" as the default function.

This is what I want to achieve:

The public url * / * should point to  */init/default/index*
The public url  */contact*  should point to  */init/default/contact*
The public url  */erbalito*  should point to  */init/default/store/erbalito*
The public url  */virtualbike*  should point to
*/init/default/store/virtualbike*
The public url  */robots.txt* should point to */init/static/robots.txt*

I'm willing to pay some money if someone is able to achieve this
consistently. Thanks in advance!



2014-07-12 20:55 GMT-03:00 Vinicius Assef <[email protected]>:

> You can use routes.
>
> On Sat, Jul 12, 2014 at 9:17 AM, Lisandro <[email protected]>
> wrote:
> > I'm quite a novice regarding to regular expresions, and I'm stuck with
> this
> > idea: I want to hide appname, controller and function from specific url,
> > lletting visible only the arguments of the url.
> >
> > For example, for this url:
> > http://mydomain.com/init/default/store/erbalito
> > should look like this
> > http://mydomain.com/erbalito
> > where "erbalito" is the first argument of the "store" function inside
> > "default" controller of "init" app.
> >
> > Is this possible? Could someone help me or point me the way of achieving
> > this? Thanks in advance.
> >
> > --
> > Resources:
> > - http://web2py.com
> > - http://web2py.com/book (Documentation)
> > - http://github.com/web2py/web2py (Source code)
> > - https://code.google.com/p/web2py/issues/list (Report Issues)
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "web2py-users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected].
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/I1W3zXNIcdA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to