You don't need a route, you need a redirect.

Check the path and scheme each request, and redirect to what you want.

Robin

On Jan 11, 2:44 am, JimK <[email protected]> wrote:
> Is it possible to setup a route that redirects all attempts to access
> the login and register pages to https?  In other words, userA goes to
> my apps site via http and then decides to register for the service.
> He clicks the register link and is then redirected to that url but as
> https.
>
> I know I could just hardcode the link into the register.html file but
> that doesn't cover users that navigate directly to that page without
> going to my site.
>
> This wouldn't be a problem if I were using my own box as the server
> because this is a trivial thing to handle with Apache.
>
> Any suggestions would be greatly appreciated.
>
> Jim
-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to