I kinda got it but i dont really know what im doing. routes_out concept is a bit confusing.
This seems to work: default_application = 'myapp' BASE = '' routes_in = ( # do not reroute admin unless you want to disable it (BASE + '/admin', '/admin/default/index'), (BASE + '/admin/$anything', '/admin/$anything'), # do not reroute appadmin unless you want to disable it (BASE + '/$app/appadmin', '/$app/appadmin/index'), (BASE + '/$app/appadmin/$anything', '/$app/appadmin/$anything'), # do not reroute static files ('/css/$anything', '/%s/static/css/$anything' % default_application), ('/img/$anything', '/%s/static/img/$anything' % default_application), ('/js/$anything', '/%s/static/js/$anything' % default_application), ('/fonts/$anything', '/%s/static/fonts/$anything' % default_application), ('/vendor/$anything', '/%s/static/vendor/$anything' % default_application), # reroute favicon and robots, use exable for lack of better choice ('/favicon.ico', '/examples/static/favicon.ico'), ('/robots.txt', '/examples/static/robots.txt'), # do other stuff (BASE + '/', '/%s/default/index' % default_application), (BASE + '/$anything', '/%s/default/$anything' % default_application), ) # include only the last 2 lines routes_out = [(y,x) for x, y in routes_in[-2::]] ---------------------------------------------------------------- Also theres some other weird behaviours that i dont know why it happens. The browser makes 5 requests for a single css file when its pulled from a cdn. <link rel="stylesheet" type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"> Or when i use SQLFORM(table, record) it performs an insert, instead an update even when the record exists. I would appreciate any advise on these behaviours. Thanks -- 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.