It can be done but you should be aware that this conflits with appadmin and with static files. Assuming a profile id can be "appadmin" or "static" then you want something like this (I think, not tested):
routes_in = ( ('/appname/$id', '/appname/default/index/$id'), ('/appname/$id/$c/', '/appname/$c/index/$id'), ('/appname/$id/$c/$f/$anything', '/appname/$c/$f/$id/$anything'), ) routes_out = ( ('/appname/$c/$f/$id', '/appname/$id/$c/$f'), ('/appname/$c/$f/$id/$anything', '/appname/$id/$c/$f/$anything'), ) On Wednesday, 11 June 2014 03:01:26 UTC-5, Mohammed Suleiman wrote: > > > > > <http://stackoverflow.com/questions/23911755/how-to-make-web2py-routing-for-all-controllers#> > > > i want something like this using web2py routing : > > - domain.com/App/controller/view/args?profile Id=XX > - domain.com/App/profile Id/controller/view/args > > i try this code : > > routes_in = ( > ('/App-name/(?P<any>.*)/$c/$f/', '/App-name/$c/$f/\g<any>'),) > routes_out = ( > ('/App-name/$c/$f/\g<any>', '/App-name/(?P<any>.*)/$c/$f/'),) > > > but its not work any one can help me to resolve my problem > thnxs alot > > -- 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.