Think i got it: routes.py: routes_onerror = [ # (r'init/400', r'/init/default/login') # ,(r'init/*', r'/init/static/fail.html') # ,(r'*/404', r'/init/static/cantfind.html') ('*/*', '/myapp/default/handle_error') ]
In app/default.py def handle_error(): code = request.vars.code url = request.vars.request_url uri = request.vars.requested_uri ticket = request.vars.ticket if uri: redirect("/myapp/static" + uri) return "Error" This way we can set static files as they were in the root directory, no need to prefix with /static. I have to polish this to implement 404's or 500's but would be a start. Any other suggestions are welcome. 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.