i prefer this tip from other post in models... session.secure() if not request.is_https: redirect(URL(scheme='https', args=request.args, vars=request.vars))
2018-04-16 15:51 GMT+01:00 Anthony <abasta...@gmail.com>: > Another option is to configure your web server to do the redirect. > > > On Monday, April 16, 2018 at 9:32:36 AM UTC-4, Leonel Câmara wrote: >> >> You can just put this in your model: >> >> request.requires_https() >> > -- > 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 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.