Thanks! It worked. Every day I get even more surprised about web2py features :) I have though one more doubt. In my case, I put this on routes.py:
BASE = dict(\ default_application = 'init', \ default_controller = 'default', \ default_function = 'store', \ functions = ['index', 'contact']) With that, I can achieve what I wanted: */contact* goes to the contact page in */init/default/contact* */erbalito* goes to Erbalito's store in */init/default/store/erbalito* */virtualbike* goes to VirtualBike's store in */init/default/store/virtualbike* However now, I can only access home page through /index but not through / ¿Is this possible to achieve? ¿Or should I change default_function to "index" and manage there the arg that points me to the store? 2014-07-13 11:17 GMT-03:00 Anthony <abasta...@gmail.com>: > Use the parameter-based router: > > BASE = dict( > default_application = 'init', > default_controller = 'default', > default_function = 'index', > functions = ['list', 'of', 'functions', 'in', 'default', > 'controller'] > ) > > If you want to exclude the default function in cases where there are URL > args, you have to explicitly list the functions in the default controller > so web2py can distinguish between args and functions. > > Anthony > > > > On Sunday, July 13, 2014 9:37:14 AM UTC-4, Lisandro wrote: >> >> 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 <vinicius...@gmail.com>: >> >>> You can use routes. >>> >>> On Sat, Jul 12, 2014 at 9:17 AM, Lisandro <rostagnolisan...@gmail.com> >>> 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 web2py+unsubscr...@googlegroups.com. >>> > 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 >>> web2py+unsubscr...@googlegroups.com. >>> 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 > web2py+unsubscr...@googlegroups.com. > 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.