Thanks Anthony, I'll try with one of those workarounds. El viernes, 16 de febrero de 2018, 13:21:14 (UTC-3), Anthony escribió: > > Unfortunately, the rewrite system does not match on the query string. Some > options are: > > - Use your web server to do the rewrite. > - Implement WSGI middleware to do the rewrite (or at least rewrite the > legacy URLs in a way that the web2py rewrite system can then match them, > such as moving the language values from the query string to the URL path). > See > http://web2py.com/books/default/chapter/29/04/the-core#External-middleware > . > - Add code in a model file to identify these URLs (possibly after a > rewrite, which could add an obvious flag to the path) and manually change > request.function, request.args, etc. to direct to the appropriate > controller. Most of the code and configuration could go in external > modules. > - Direct the different languages to a single function and simply use > the value in request.get_vars to determine the appropriate content. > > Anthony >
-- 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.

